Good day, all,
On Tue, 10 Aug 2004, LuKreme wrote:
> On 10 Aug 2004, at 11:08, Matic Dolar wrote:
> > - run spamassassin against a whole mailbox file (presumably quite
> > large one) full of mixed messages
>
> formail -s procmail -m sa.check < THE.MBOX
There's an alternate form that will process each of the individual
messages in the mailbox (calculating and adding the SpamAssassin score
block) without requiring procmail or a procmail config file:
formail -f -ds /usr/bin/spamc <origfolder >folder.reprocessed
This assumes you have spamd running. If you don't, I believe you
can simply substitute "spamassassin" for "spamc", although this will take
longer per message because of the increased startup time.
Note that LuKreme's approach with procmail will sort the mail into
spam and ham folders, while the above will just place all messages in
folder.reprocessed. Depends on what you want.
Cheers,
- Bill
---------------------------------------------------------------------------
bash$ :(){:|:&};:
-- Michal Zalewski
(Courtesy of George Bakos. _Don't_ run this.)
--------------------------------------------------------------------------
William Stearns ([EMAIL PROTECTED]). Mason, Buildkernel, freedups, p0f,
rsync-backup, ssh-keyinstall, dns-check, more at: http://www.stearns.org
--------------------------------------------------------------------------