On 12 March 2002, Will Yardley said: > spamassassin doesn't have a facility for reporting non-spam emails that > are reported as spam, does it? i don't know if the authors would have > the time / energy to deal with something like this, however it might be > helpful to be able to report this stuff...
I've been hacking on a pair of Python scripts for this purpose. The idea is as follows: * MTA invokes spamcheck (script #1) for every incoming message. spamcheck pipes the message through spamc and inspects the headers added by spamd. - if spam, save the message to /var/mail/spam (a Maildir) and append a few lines to /var/mail/spam/.spamreport - otherwise, reinvoke /usr/sbin/sendmail to send the message along to all original recipients * cron periodically invokes spamreport (script #2), which sends a human-readable version of /var/mail/.spamreport to postmaster, removes .spamreport so that future spam reports start afresh, and (optionally) deletes old spam (the definition of "old" is up to you). Right now, the code exists and has been very lightly tested. It has not yet been put into production. It probably has some Exim-specific bits, but could probably be made MTA-agnostic. It is very definitely Maildir-centric. Also, they're geared towards a system where postmaster is responsible for reading spam reports and rescuing false positives. It should be possible to generalize this, but that's not (yet) a priority for me. I'll probably put these scripts on my web page at some point. Greg -- Greg Ward - software developer [EMAIL PROTECTED] MEMS Exchange http://www.mems-exchange.org _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk