On 16 Feb 2004, at 06:27, Loren Wilton wrote:
Is there any obvious way to do something like this?

what I would do is use cron/procmail to take messages from a specific mailbox (say "spamcop" and run them through spamassassin -d and then sent them on to spamcop reporting address:



cron (every hour at 20 after) 20 * * * * * /path/to/script

script:
/patch/to/formail -s procmail -m /path/to/spamcop.rc < $HOME/Mail/spamcop.mbox
mv $HOME/Mail/spamcop.mbox $HOME/reported.`date '+%Y-%m'`
touch $HOME/Mail/spamcop.mbox



spamcop.rc:

:0 fw
| spamassasin -d

:0c
! [EMAIL PROTECTED]

:0:
$HOME/Mail/reported.spam


Something like that (of course, this is untested, but I use a similar mechanism for handling "learn" mailboxes for SA with Spam and Ham.


--
"Don't be nice.  It's Creepy."  Tendo Akane



Reply via email to