Ville Herva <[EMAIL PROTECTED]> writes:

> foreach i in spool/*; do
>   if spamassassin --exit-code < $i > temp; then
>     cat temp >> HAM
>   else
>     cat temp >> SPAM
>   fi

That gets the right result, but involves running a new spamassassin
for each message.  I know about spamc/spamd so you could use spamc in
the loop instead.  That would be better.

But is there a true 'batch mode' where a single spamassassin
invocation will read many messages one after the other and process
each one?

For machines with not enough computrons to do real-time mail filtering
it might work to deliver mail to an mbox file and then process it as a
batch when needed or when the machine is idle.  Cranking through the
messages one after the other ought to be the fastest way to process
them, if it is possible.

-- 
Ed Avis <[EMAIL PROTECTED]>

Reply via email to