If you want to use this approach, then faster and more efficient would
be to use the -c flag to spamc:

cat $MSG | spamc -c && echo 'was spam' || echo 'was not spam'

C



On Sat, 2002-02-09 at 07:45, dman wrote:
> On Sat, Feb 09, 2002 at 01:48:01AM -0800, Darren/Torin/Who Ever... wrote:
> | I'd like to test out spamassassin on a bunch of e-mail.  But there
> | doesn't seem to be any way to automate such things with any detail.
> 
> Could you just stick some spam messages in one dir and non-spam in
> another and have a shell script that iterates over the files and
> checks that
>     cat $MSG | spamc -f | grep "^X-Spam-Flag:"
> is the empty string or not depending on which set of messages you're
> testing?
> 
> -D
> 
> -- 
> 
> Micros~1 :  
>  For when quality, reliability 
>   and security just aren't
>    that important!
> 
> 
> _______________________________________________
> Spamassassin-talk mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/spamassassin-talk
> 
> 


_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to