[sam] SA + Maildrop + IMP spam reporting
Tim Hasson
tim at aidasystems.com
Fri Jan 30 14:26:07 PST 2004
Hi,
The attached patch to IMP-3.2.1 allows you to enable spam reporting in
imp/conf.php
set a spam at address.com , and optionally spam delete enable.
When a user clicks "Report as Spam" in message.php, the message is
redirected to the spam at address.com without modifying/adding any headers
(such as Reset headers when using Redirect function in IMP), except for a
extra Received line which doesn't hurt much..
This patch was very useful for me to allow to report spam directly to
sa-learn (from SpamAssassin) to teach the bayesian classifier server-wide
If using maildrop as the delivery agent (recommended):
Simply, in the spam at address.com maildir put a .mailfilter with 3 lines like:
exception {
cc "| /usr/local/bin/sa-learn --spam --local --single --no-rebuild"
}
And run a cron regularly to rebuild the bayes database:
0 */2 * * * vpopmail /usr/local/bin/sa-
learn --rebuild
Hope it could be useful to many people..
Respectfully,
Tim Hasson
Consultant, AiDA Systems
(209) 639-2989 Voice
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imp-3.2.1-reportspam.patch
Type: application/octet-stream
Size: 6456 bytes
Desc: not available
Url : http://lists.horde.org/archives/sam/attachments/20040130/7aeddfde/imp-3.2.1-reportspam.obj
More information about the sam
mailing list