> What I have is a number of mail folders under ~/mail/, each mail
> folder is
> basically a file that contains all the mails and the problem that
> spamassassin
> has in reading in from these directly is with the following folder header
>> From MAILER-DAEMON Wed Mar 3 10:38:52 2004
> Date: 03 Mar 2004 10:38:52 +0000
> From: Mail System Internal Data <MAILER-DAEMON at compsoc.nuigalway.ie>
> Subject: DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA
> Message-ID: <1078310332 at compsoc.nuigalway.ie>
> X-IMAP: 1077182741 0000000428
> Status: RO
>> This text is part of the internal format of your mail folder, and is not
> a real message. It is created automatically by the mail system software.
> If deleted, important folder data will be lost, and it will be re-created
> with the data reset to initial values.
...
> Am i missing something, can sa-learn handle the extra imap folder data
> correctly, or is it that I'll just have to stick with creating a
> temporary file
> that contains the mbox without the extra imap folder and feed the
> temp mbox
> into sa-learn and then delete it.
Have you tried this? I think you're jumping to conclusions by saying:
> the problem that spamassassin has in reading in from these
> directly is with the following folder header
I can't see why sa-learn should treat the "magic" first message
specially. It's just a standard email message that happens to have
an X-IMAP header that uw-imapd's (or maybe its cclient library) uses.
Make the following mboxes:
o one with only the "special" mesage
o one with only a normal message
o one with only two normal messages
o one with both special and normal
Run them all through sa-learn --mbox and post your results.
Later,
Kenn
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!