Thanks!!! This is exactly something I was looking for!
I'd just like to ask you one favor, if it isn't too much of a bother ...
Could you please explain what the lines in the script do (at least
approximatley), so I can play around with it?
Or could you at least point me in the right direction?
Thank you so much!
Matic
----- Original Message -----
From: "LuKreme" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 10, 2004 9:19 PM
Subject: Re: testing a whole mailbox
> 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
>
> sa.check:
>
> LOGFILE=the.mbox.log
> LOGABSTRACT=NO
> NL="
> "
> LONGDATE=`date "+%y-%b-%d %I:%m:%S %z"`
> TRAP='echo ""; formail -l "$LASTFOLDER" ;echo " Spam: $SPAM
> Deliverd: $LONGDATE'
>
> :0fw
> | spamassassin
>
> :0
> * ^X-Spam-status:\/
> { SPAM=$MATCH }
>
> :0:
> * ^X-Spam-Status:(.*\<)?Yes
> SPAM.MBOX
>
> :0:
> HAM.MBOX
>
> > - analyze the results I get - amount of spam received, amount of spam
> > caught, etc ...
>
> The logfile will contain the basic details on every email grouped into
> a single block
>
>
> --
> Ah we're lonely, we're romantic / and the cider's laced with acid / and
> the Holy Spirit's crying, Where's the beef? / And the moon is swimming
> naked / and the summer night is fragrant / with a mighty expectation of
> relief
>