On Fri, Feb 13, 2004 at 08:19:42AM -0500, you [Bob George] wrote: > Ville Herva <[EMAIL PROTECTED]> wrote: > > Is there a way to batch process a mailbox with SpamAssassin > > (sort it to ham and spam)? > > > > I had this ~10000 mail box ~70% of which was spam. > > > > The best I could think of was to split the mbox with > > tools/mboxsplit, then run them through spamassassin > > --exit-code one by one and cat them the HAM or SPAM mbox > > accordingly. Not too elegant... > > Have you implemented spamassassin since those mails were received?
Yes, in the case I mentioned I had just set up spamassassin and was cleaning up my old mailbox. But it turns out there's need for this in other cases. For example, users whose mailbox has unattented for a long time. Unfortunately, those users have no spamassassin configuration nor procmailrc, so in that case it would be better to just batch process the mailbox with default spamassassin config. > Here's what I do after a significant procmail/spamassassin modification to > clean up an mbox: > > 1. mv mbox mbox.old (or rename to any other name not used for sorting) > 2. formail -s procmail < mbox.old > > formail breaks out each message and sends it to procmail (using the default > procmailrc and ~/.procmailrc files) for sorting. I have spamassassin and > clamav > run through procmail. That's clever. That requires one to create procmail recipe beforehand, though. thanks, -- v -- [EMAIL PROTECTED]
