MozillaZine

AutoSave ( for TB ) ver 0.0.96 is available

Announce and Discuss the Latest Theme and Extension Releases.
Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted June 16th, 2005, 6:53 am

AutoSave allows a user to automatically save messages as individual files upon receipt or upon send

The filenames of these individual files are specified by userprefs
Firstly, the user prefs
autosave.defaultExt dictates the default extension of filenames
autosave.filename_style dictates how the filename will be arranged

so for sender - date - subject
user_pref("autosave.defaultExt", ".eml");
user_pref("autosave.filename_style", "%sndr - %dat - %subj");
will produce a filename like "Jim@someisp.com - <dateFormat> - The pics I promised.eml"

That way any permutation can be used..
for sender=subj=recipient
user_pref("autosave.filename_style", "%sndr=%subj=%recp");
will produce "Jim@someisp.com=The pics I promised.eml=me@myisp.com"

outgoing_filename_style dictates how outgoing filenames will be formatted
..in case you want the outgoing filenames formatted different to incoming... follows the same rules as filename_style

autosave.date_style dictates how the %dat variable will look
user_pref("autosave.date_style", "%dd.%mm.%yyyy");
will produce a date like 04.11.2005

user_pref("autosave.date_style", "%mm%dd%yyyy");
will produce a date like 11042005

hours minutes seconds and ampm are supported as well ( NOTE minutes is %mn )
%hr, %mn, %ss, %ampm
...if %ampm is present, hrs will be 12 hr format
...if %ampm is NOT present, hrs will be 24 hr format

%now will insert your current system date in a filename, formatted according to autosave.date_style
A complete list of variables > %sndr, %dat, %subj, %recp, %now, %yyyy, %mm, %dd, %hr, %mn, %ss, %ampm

A "Rules" file dictatates what will be autosaved and to where ( an example is in the xpi )
Breifly, the rules file lists headers ( of the message ) first, then a path string..
Each header can have a regexp - not all headers need be included in a rule
if all headers' regexps for a rule match, the corresponding 'fileto' path will be used no further rules will be considered

Now for the fun bit..
IF the regexp produces two substring matches, the second will fill in a %r var which can be used in the fileto path
example: this rule will take messages whose subject has the string '#' in it and will file it in c:\docs\XXXXX\<filename_style>.eml
...where XXXXX are the characters that follow the # in the subject line, ending at the first space character
subject:(#)([^ ]*)
fileto:c:\docs\%r\


headers that can be regexped (so far) are
from
to
subject

NOTE: the fileto path that you want to be used MUST EXIST or the autosave will fail.. This can be a benefit as you can have a rule that matches messages that you DO NOT want autosaved use a path that does NOT exist

The combo of a rules file and the userprefs can be very powerful..
If you put slashes in the filename_style ( or outgoing_filename_style ) , those get used as directory specifiers when the file is eventually saved

- for example -
if your filename style looks like this %dat-%sndr-%subj"
and you have your datestyle pref look like this %yyyy\\%mm\\%mm%dd%yyyy~%hr:%mn
and your rule specifies a path of C:\archive\projectX\
then your filename and path will be C:\archive\projectX\2005\06\06152005~15:04-todd@jams.org-project Specs revision 111.eml


it also is able to import one/many emls from File...Import Messages
and is able to import one/many emls when you double click an eml file in explorer or block select a bunch of emls in explorer and right-click 'open' them
...changes to your registry are required !!! ( instructions here > www.supportware.net/mozilla/TB_AutoSaveHelp.txt )

get it from from www.supportware.net/mozilla/AutoSave.xpi

meszaj
 
Posts: 16
Joined: June 3rd, 2005, 6:37 am

Post Posted June 22nd, 2005, 7:31 am

Hello ausdilecce,

i have found a "bug" in your extension. ok it is not really a bug, but for me it is very important, because without that your extension is for me useless.
At my company where i work we have a lot of customers who have their names with letters that are not on the US keyboard set.

So... when this letters occur in the sender or recipient or subject field, your exstension fails to save the email.:(

example:

name:....................email:....................................subject:
Jože Jadovšček --> joze.jadovscek@someip.at --> Pišem v zvezi s šolo v Gorišnici in Žižkih

if you couldnt read the letters above you can see it bellow:
some of these letters are here:
http://www.w3schools.com/html/html_entitiesref.asp
-small and capital S with caron
-small and capital C with caron
-small and capital Z with caron

if you could fix this bug, and make letters to unicode or something... i would be glad,


thnx

meszaj
 
Posts: 16
Joined: June 3rd, 2005, 6:37 am

Post Posted June 24th, 2005, 12:36 am

anyone here ?!?? :crazyeyes: :-k [-o<
i am quite in a urgent situation because i have persuaded my chief that we should move to thunderbird and that we can make easy backups of all emails with autosave, but then i have found this bug... #-o

Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted June 24th, 2005, 7:26 am

Sorry for not getting back to you sooner.. I just now got the alert that there was a reply to the thread...

Now, regarding this bug and moving to thunderbird..

While I understand that you like the functionality and all, I would be *very* hesitant to use this extension and Thunderbird in a production environment.. This extension has NOT been stress tested nor has it been run through a variety of tests intended to shake out all bugs... ( as you can see by the bug you found)

Now, I would be glad to fix the bug but I will need some example emails to test with..
Please send such examples to [autosave] [at] [supportware] [dot] [net]

meszaj
 
Posts: 16
Joined: June 3rd, 2005, 6:37 am

Post Posted June 26th, 2005, 6:24 am

ausdilecce wrote:
Now, I would be glad to fix the bug but I will need some example emails to test with..
Please send such examples to [autosave] [at] [supportware] [dot] [net]


i have send you a few example emails to test the bug

good luck

Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted June 26th, 2005, 2:10 pm

meszaj,

could you tell me what your pref "autosave.filename_style" is and also send me your autosave rules please..

When you say it fails to save, do you mean it gives you an error or nothing happens or what ?

meszaj
 
Posts: 16
Joined: June 3rd, 2005, 6:37 am

Post Posted June 28th, 2005, 2:16 am

meszaj,

could you tell me what your pref "autosave.filename_style" is and also send me your autosave rules please..


my autosave rules are only that i save all outgoing and all incoming emails in seperate folders, nothing else

user_pref("app.update.lastUpdateDate", 1115107648);
user_pref("autosave.date_style", "%dd.%mm.%yyyy");
user_pref("autosave.debug", false);
user_pref("autosave.defaultExt", ".eml");
user_pref("autosave.dir0", "D:\\!Downloads\\Email Arhiv\\Prejeto");
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", "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 - %sndr - %subj");
user_pref("autosave.filenamesUnique", true);
user_pref("autosave.outgoing_dir", "D:\\!Downloads\\Email Arhiv\\Poslano");
user_pref("autosave.outgoing_filename_style", "%dat - %recp - %subj");
user_pref("autosave.rulesfilepath", "C:\\Documents and Settings\\Administrator\\Application Data\\Thunderbird\\Profiles\\lh2skdts.default\\ASre.txt");
user_pref("autosave.saveWhat", 3);


When you say it fails to save, do you mean it gives you an error or nothing happens or what ?

when autosaving --> nothing happens

when manually--> in the status bar it shows xy messages saved, but when i look after it, the message was not saved

Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted June 28th, 2005, 4:37 am

meszaj,

You do know that there is a ! before Downloads in your outgoing_dir and dir0 prefs right ?

What does your ASre.txt file look like ?

julien180
 
Posts: 2
Joined: June 28th, 2005, 6:27 am

Post Posted June 28th, 2005, 6:47 am

Hi !

I have just discovered this extension and i think it is very useful but I think that it would useful also to be able to autosave a whole repertory or to autosave emails already received with certain labels, for the moment if I understood we can save automatically only mails entering or outgoing, so is it possible to do that ?

Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted June 28th, 2005, 2:40 pm

julien180,

Sorry, I tried to make out what you are trying to say, but I failed.. Please rephrase the question

meszaj
 
Posts: 16
Joined: June 3rd, 2005, 6:37 am

Post Posted June 29th, 2005, 12:32 pm

ausdilecce wrote:meszaj,

You do know that there is a ! before Downloads in your outgoing_dir and dir0 prefs right ?

What does your ASre.txt file look like ?


Yes i know its a ! before Downloads, beacuse i want it that way.
the reason is that the folder is on the top when i sort it by name...

even if i rename it to Downloads autosave fails.


I dont use ASre.txt... i dont have the file in the folder where prefs.js is... i dont use it
i have tested the bug with many various settings, but the only thing when autosave fails were the special characters which i send it to you via email

meszaj
 
Posts: 16
Joined: June 3rd, 2005, 6:37 am

Post Posted June 30th, 2005, 2:47 am

once again. in html this special characters(letters) are (i do a little web development):

if you choose ISO-88529-2 charset/encoding or Windows-1250 encoding or utf-8 (unicode) this special characters work in every browser

or if you do it manually:

š = &#353 or š = &#154

Š = &#352 or Š = &#138

ž = &#382 or ž = &#158

Ž = &#381 or Ž = &#142

č = &#269

Č = &#268




how to implement this encodings in autosave???--> i dont know but this would 100% fix the bug

meszaj
 
Posts: 16
Joined: June 3rd, 2005, 6:37 am

Post Posted July 1st, 2005, 11:00 pm

ausdilecce,

anything new about the bug?

meszaj
 
Posts: 16
Joined: June 3rd, 2005, 6:37 am

Post Posted July 18th, 2005, 12:23 am

1.)
i have made some more engineering on that bug. with the new version 0.1.0 of your extension all mesages are saved!!

thanx so far...

but i figured out that your extension is only saving fine if the messages subject is in Western ISO - 8559-1 character encoding. But if its in Central Europen - ISO - 8559-2 with special characters then the special characters are swaped by some weird characters, like ~.eml

but i can live with that, so far it saves all messages now...

2.)
i have another problem now. with the new version 0.1.0 autosave doesnt work anymore. i have to save messages manually--> via right click.

my prefs.js looks like this, i dont use ASre.txt:


user_pref("autosave.date_style", "%mm%dd%yyyy");
user_pref("autosave.debug", false);
user_pref("autosave.defaultExt", "eml");
user_pref("autosave.dir0", "D:\\Email\\Prejeto");
user_pref("autosave.dir0en", true);
user_pref("autosave.dir1", "none");
user_pref("autosave.dir1en", false);
user_pref("autosave.dir2", "D:\\Email\\Work");
user_pref("autosave.dir2en", true);
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", "%subj");
user_pref("autosave.filenamesUnique", true);
user_pref("autosave.outgoing_dir", "D:\\Email\\Poslano");
user_pref("autosave.outgoing_filename_style", "%subj");
user_pref("autosave.rulesfilepath", "C:\\Documents and Settings\\meszaj\\Application Data\\Thunderbird\\Profiles\\yjxmtshh.default\\ASre.txt");
user_pref("autosave.saveWhat", 3);

3.)

p.s.
At your site: http://www.supportware.net/mozilla/#ext13 you have still as MozillaZine Thread the old thread as link and some people are still writting there...

Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted July 18th, 2005, 3:50 pm

Version 0.1.1 is available..

This version should work with all character encodings

get it from from www.supportware.net/mozilla/AutoSave.xpi

Return to Extension/Theme Releases


Who is online

Users browsing this forum: No registered users and 1 guest