Hi,
The attached patch to IMP-3.2.1 allows you to enable spam reporting in
imp/conf.php
set a spam@address.com , and optionally spam delete enable.
When a user clicks "Report as Spam" in message.php, the message is
redirected to the spam@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@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
Attachment:
imp-3.2.1-reportspam.patch
Description: Binary data