You're all assuming mbox delivery too :)  Or even accessability of the mailboxes being delivered too.  Grepping the logfiles is a more reliable way of catching everything SA's seen.

C

On Sat, 2002-01-19 at 08:20, Charlie Watts wrote:
On Sat, 19 Jan 2002, Cyril Chaboisseau wrote:

>  Bob Proulx wrote:
> > > Can anyone give me pointers on how I could easily count the spam that is
> > > filtered by spam assassin.
> >
> > Assuming you are saving it to a spambox then:
> >
> >   grep -c '^From ' spambox
>
> (not very precise if you have lines beggining with From in the body, and
> I would still use grep -c '^From:' for better results...)
>
> try grepmail instead :
>
> grepmail -r . ~/Mail/spam

If you're using standard mbox format, you -CAN'T- have lines beginning
with '^From ' in the body - because that is the message delimiter. Lines
that begin with '^From ' in the body of a message must be escaped by the
MDA (typically they are converted to '>From ' ...).

You -can- have lines with '^From: ', though. The first is more accurate,
truly.

Here's a good explanation of mbox formats:
http://www.qmail.org/qmail-manual-html/man5/mbox.html

It occurs to me to wonder if spamassassin properly quotes '^From ' lines
in the body of messages. Heh, nope, it doesn't.

I swear delivery isn't worth doing. What with locking and '^From '
lines...

-- 
Charlie Watts
[EMAIL PROTECTED]
Frontier Internet, Inc.
http://www.frontier.net/


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


Reply via email to