[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building Statistics Reports
From: |
Adam Bayless |
Subject: |
Re: Building Statistics Reports |
Date: |
Tue, 17 Feb 2004 11:44:54 -0700 |
User-agent: |
Mozilla Thunderbird 0.5 (Windows/20040207) |
Actually found my own little hack. In case anyone else is interested, I
added:
debug(D_ALWAYS, "Message Processed for: %s status: %s",
assassin->rcpt().c_str(), assassin->spam_status().c_str());
at line 364 of spamass-milter.cpp and recompiled. Quick and dirty but it
gets the job done.
thanks,
adam
Adam Bayless wrote:
My customers want a report at the end of each month showing how many
messages were marked as spam for their particular mailbox or domain. The
only way I can see to come up with this would be to munge the sendmail
logfile and use the message id to compare the lines from sendmail and
spamass-milter to see if a message for a particular email address was
marked as spam. It'd be a lot easier if spamass-milter logged the email
address either on the line where it adds the header, like:
Milter add: header: X-Spam-Status: No, hits=-4.9 required=5.0
tests=BAYES_00 autolearn=no version=2.63 address@hidden
or even on a line by itself. Is that easy or even doable?
Thanks,
Adam
--
------------------------------------------------------------
Adam Bayless | vi /etc/mail/aliases
Fibernet System Janitor | complaints: /dev/null
address@hidden | :wq
baylessfamily.org/~abayless | newaliases
------------------------------------------------------------