Ok, I just patched spamd (not yet in CVS but will be in minutes) to log 
some extra info -- now it'll dump not just whether each message is spam, 
but also the score and threshold.  It should henceforth be trivial to 
just parse the log files to extract how messages were scored, even 
broken down by userid.

C

On Friday, February 22, 2002, at 01:18 PM, Mark Roedel wrote:

>> -----Original Message-----
>> From: Joel Epstein [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, February 22, 2002 12:30 PM
>> To: [EMAIL PROTECTED]
>> Subject: [SAtalk] Reporting
>>
>>
>> Are there any reporting features built into or supplied with
>> SA?  While I have no issue writing them myself, I was just
>> curious.  I noticed in the list today someone had listed
>> statistics for all mail processed broken into hit ranges.  Any
>> existing capabilities for this?
>
> Those were my stats, so I suppose I should fess up to how I put them
> together.  (Short answer: *not* in an especially impressive way, and
> certainly not using any capabilities built into SpamAssassin.)
>
> As I think I said in the message accompanying those stats, my use of
> SpamAssassin is in conjunction with MIMEDefang.  One of MIMEDefang's
> features is the ability to log its actions into the sendmail logs,
> including any headers that it adds to messages (including the
> "X-Spam-Level: ************" headers that I think I also mentioned in
> the same message).
>
> So...
>
> Basically, I have a horridly inefficient shell script that does repeated
> greps through the logfile, in the basic form of:
>
>      echo Spam Level 5-10: \
>         `grep 'X-Spam-Level: \*\*\*\*\*' /var/log/maillog | \
>          grep -c -v 'X-Spam-Level: \*\*\*\*\*\*\*\*\*\*'`
>
> One of these days I'll get annoyed enough with it to write something
> more elegant in Perl to do the same thing in a single pass through the
> logfile, but for now it gets the job done.
>
>
> ---
> Mark Roedel           | "Blessed is he who has learned to laugh
> Systems Programmer    |  at himself, for he shall never cease
> LeTourneau University |  to be entertained."
> Longview, Texas, USA  |                          -- John Powell
>
> _______________________________________________
> 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