AutoSave ( for TB ) ver 0.0.96 is availableHi,
this is a great plugin. Thanks to the author. With this one and a second autoprint utility I can now realise what i was locking for for a log time: Automatically printing incomming emails of a specific type. I always hoped that there would be a filter for that but your extension is a good workaround. I have just one simple question: How cat I save the messages without attachments and headers, just subject, from, to message text. Thanks in advance. Alex PS: This is may configuration right now: user_pref("autosave.date_style", "%dd.%mm.%yyyy"); user_pref("autosave.debug", false); user_pref("autosave.defaultExt", ".txt"); user_pref("autosave.dir0", "c:\\autosave"); user_pref("autosave.dir0en", true); user_pref("autosave.filename_style", "%dat - %sndr - %subj"); user_pref("autosave.filenamesUnique", true); user_pref("autosave.outgoing_filename_style", "%subj"); user_pref("autosave.rulesfilepath", "C:\\Dokumente und Einstellungen\\xyz\\Anwendungsdaten\\Thunderbird\\Profiles\\default\\gcs26g2o.slt\\ASre.txt"); user_pref("autosave.saveWhat", 3); I don't fully understand what I am supposed to Edit in
'ASre.txt' to Autosave messages to Different Folders ??? eg: I want this functionality: Account 1 ----------- -bob@yahoo.com (Email Account Name in Thunderbird) - Should Auto Save to C:\Email\bob\Inbox\25072005 - Subject Blah.eml - Should Auto Save to C:\Email\bob\Sent\26072005 - RE: Subject Blah.eml Account 2 ----------- -john@hotmail.com (Email Account Name in Thunderbird) - Should Auto Save to C:\Email\john\Inbox\25072005 - Subject Blah.eml - Should Auto Save to C:\Email\john\Sent\26072005 - RE: Subject Blah.eml my prefs.js ------------------------------------------------------ user_pref("autosave.date_style", "%dd%mm%yyyy"); user_pref("autosave.debug", true); user_pref("autosave.defaultExt", "eml"); user_pref("autosave.dir0", "C:\\Thunderbird\\Saved"); user_pref("autosave.dir0en", true); user_pref("autosave.dir1", "none"); user_pref("autosave.dir1en", false); user_pref("autosave.dir2", "none"); user_pref("autosave.dir2en", false); user_pref("autosave.dir3", "C:\\Thunderbird\\Saved"); user_pref("autosave.dir3en", false); user_pref("autosave.dir4", "none"); user_pref("autosave.dir4en", false); user_pref("autosave.dir5", "none"); user_pref("autosave.dir5en", false); user_pref("autosave.filename_style", "%acct\\%dat - %subj"); user_pref("autosave.filenamesUnique", true); user_pref("autosave.outgoing_dir", "C:\\Thunderbird\\Sent"); user_pref("autosave.outgoing_filename_style", "%acct\\%dat - %subj"); user_pref("autosave.rulesfilepath", "C:\\Thunderbird\\Profiles\\mz9h5zor.default\\ASre.txt"); user_pref("autosave.saveWhat", 3); ------------------------------------------------------ my ASre.txt ------------------------------------------------------ fileto:C:\Email ------------------------------------------------------ The above settings ended up saving emails I recieve with Email Account Name john@yahoo.com to the 'C:\Thunderbird\Saved\' directory & NOT the 'C:\Email\john\Inbox\' directory eg: C:\Thunderbird\Saved\account2_25072005 - test 25 556.eml - As you can see, 'john' is replaced by 'account2' ... WHY ??? .. it was saved with the Account Name as part of the Email eml name & NOT as the Folder Name AND the proper Email Account Name .... WHY ??? (ie. 'account2' as eml(above) -> this Should be -> 'john' as a Folder Name) Any further help you can provide would be greatly appreciated !! thnx OK,
The prefs for autosave.dir0 thru autosave.dir5 and autosave.outgoing_dir are for autosaving messages NON FILTERED for messages with no label, then label1 (important) through label 4 (later) , then outgoing messages, respectively. the asre.txt file is to filter messages for specific processing.. the asre file needs *AT LEAST 2* lines.. a condition line and an action line.. In your reply above, you only have ONE line in the asre file, which will NOT work I already explained that this extension cannot have foldernames as variables in the autosave path.. when using the variable %acct in the path, it gets replaced with a *number*, NOT the account name read this to see if you can figure out what should be in the asre file.. >> www.supportware.net/mozilla/ASre.txt
OK, I read ASre.txt & modified the following, BUT 'Now' NO messages get saved !! BTW: I feel I need a degree in Perl scraping to understand or get this ext to work ![]() prefs.js ---------------------------------------------------- user_pref("autosave.date_style", "%dd%mm%yyyy"); user_pref("autosave.debug", true); user_pref("autosave.defaultExt", "eml"); user_pref("autosave.dir0", "none"); user_pref("autosave.dir0en", false); user_pref("autosave.dir1", "none"); user_pref("autosave.dir1en", false); user_pref("autosave.dir2", "none"); user_pref("autosave.dir2en", false); user_pref("autosave.dir3", "none"); user_pref("autosave.dir3en", false); user_pref("autosave.dir4", "none"); user_pref("autosave.dir4en", false); user_pref("autosave.dir5", "none"); user_pref("autosave.dir5en", false); user_pref("autosave.filename_style", "%dat - %subj"); user_pref("autosave.filenamesUnique", true); user_pref("autosave.outgoing_dir", "none"); user_pref("autosave.outgoing_filename_style", "%dat - %subj"); user_pref("autosave.rulesfilepath", "C:\\Thunderbird\\Profiles\\mz9h5zor.default\\ASre.txt"); ---------------------------------------------------- ASre.txt ---------------------------------------------------- to:john@yahoo.com fileto:C:\Thunderbird\Email\john\Inbox\ from:john@yahoo.com fileto:C:\Thunderbird\Email\john\Sent\ ---------------------------------------------------- Sorry if I am a bit slow in understanding, but I am new to this extension ![]() Put these back and you should be fine
user_pref("autosave.dir0", "C:\\Thunderbird\\Saved"); user_pref("autosave.dir0en", true); And you dont really have to primsg me as well as posting here ![]()
that worked great ![]() One thing though ... I noticed that if you do NOT create the Directories in Windows Manually, Autosave does NOT create the directories for you ![]() ... & if those directories do NOT exit - AutoSave FAILS to Create/Save the Email message ![]() Maybe you could think of adding a function for Auto Creating Directories 'along' with the message ![]() ... as having to make directory structures in Windows MANUALLY that MATCH those in ASre.txt can be prone to human error ![]() PS: Is there any way, hack or otherwise, to make AutoSave create directory structures along with the Email Message ?? asdzxc,
Correct, Autosave does NOT create the directories for you *by design* Yes, autocreating folders is possible BUT, your asre settings could be set wrong ( human error again ) and you could end up with 1000s of new folders.. aschulle, Filtering content is VERY difficult to do well.. I would have to code my own filtering function cuz I cannot use any built-in functions.. ( they all deal with posting content to the message pane ( a browser window ) Sorry..
1) Maybe you could have the Creation of Folders as an 'Option', maybe a checkbox in the section 'Extensions->Options' for v0.1.3 ![]() ... for users who find it more time efficient to have Auto Folder Generation ![]() 2) How do I do a "Catch ALL" for the word 'john@' in the 'from:' field so it catches BOTH 'john@yahoo.com' AND 'john@hotmail.com' from: ??? john@ ??? fileto:C:\Thunderbird\Email\john\Sent\ 3) Possible 'BUG' in AutoSave If my ASre.txt is: ----------------------------------------- to: john@yahoo.com fileto:C:\Thunderbird\Email\john\Inbox\ from: john@yahoo.com fileto:C:\Thunderbird\Email\john\Sent\ ----------------------------------------- And I SEND an Email Message to 'Myself', the 'Inbox' Message is created BUT the 'Sent' Message is NOT ! ![]() It seems if you have MORE than 1 'condition' that is the SAME, only the 1st condition is Caught !! ![]() 1 maybe
2 just use john@ 3 Thats correct.. the first filter to match takes all.. other filters are ignored..
2) I already tried 'john@' but it does NOT work, as Thunderbird's from field looks like this: 'JC <john@yahoo.com>' I just tried the Catch All 'reg exp' - 'from:^.*john@.*$' This seems to work. Does the 'reg exp' look right to you OR is there a better one ?? 3) Why would you want the 1st match takes all & rest ignored ?? Whats the need/advantage of this ?? Maybe you could add an option in either the ASre.txt or Options Tab to 'Ignore' 1st match takes all ?? I was thinking that you could add the 2 options as a flag variable in the ASre.tx file
... this would be easier than changing the GUI Options tab ![]() 1) Creation of Folders - Auto Folder Generation 2) 'Ignore' 1st match takes all The extension ignores the rest of the filters for a reason..
When several filters are acting on one message at the same time, unexpected issues may arise. Debugging those unexpected issues would be a nightmare.. So, to keep what hair I have left, I have decided NOT to allow 'Ignore' 1st match takes all Autocreation of folders *may* be implemented.. No need to bump again..
Thanks for taking the time to *consider* my option request ![]() ---------------------------------
ausdilecce, could you make the extension to work so that it wouldnt save emails which are marked as junk mail by thunderbird? now it saves junk mail too. thnx Return to Extension/Theme Releases Who is onlineUsers browsing this forum: Bing [Bot] and 2 guests |
![]() |