On Sat, 2 Jul 2005, Eli Billauer wrote:
Hello all,
I would like to write a (Perl) script, which automatically scans my Mozilla
mail files, and runs Spamassassin's learn utility accordingly. This relies,
of course, on my habit not to throw away any mail I get, but rather store
them all in subfolders, according to their category. So what I have is a
great database for telling spam from ham.
So suppose that I'm ready to close Mozilla down every now and then, and run a
script. There are two issue here:
1. Mozilla runs on a Windows 2000 computer, and Spamassassin on the Linux
one, interfacing with Samba. If I open any mail archive file (for read) from
the Linux machine, Mozilla "rebuilds the folder" next time I'll access that
folder. That's a headache.
1) run a small perl script that copies the files to a different location,
that way mozilla will not know someone played with it's files.
2. Aside from the .msf files, there are files in a mbox-alike format. I
suppose that compacting the folders would make them pretty straightforward,
but if I wouldn't like to do that -- does anyone know how to read these file
in an intelligent manner? The problem is with deleted mails and such.
I suspect that if you look at a mailbox file (for example, one that pine
uses) which contains undeleted mails (that were not expunged), you would
see the flag used.
Thanks,
Eli
--
Web: http://www.billauer.co.il
--------------------------------------------------------------------------
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]
--------------------------------------------------------------------------
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]