[ mailman-Patches-840426 ] SpamAssassin handler for pre-tagged mail

SourceForge.net noreply at sourceforge.net
Sun Nov 16 10:59:03 EST 2003

Patches item #840426, was opened at 2003-11-12 01:54
Message generated for change (Comment added) made by pieterb
You can respond by visiting: 

Category: list administration
Group: Mailman 2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeff Warnica (jeffwarnica)
Assigned to: Nobody/Anonymous (nobody)
Summary: SpamAssassin handler for pre-tagged mail

Initial Comment:
In my ISP enviroment (and many others, based on my
readings of various MTA lists) ALL incomming mail is
scanned by MailScanner, which includes Spamassassin
analysis, with the results put in the header.

Simmilar to the other SA handlers in here, this one
deals with pre-tagged mail.

To install, drop this into the $prefix/Mailman/Handlers
directory, add 'SpamAssassin' to the GLOBAL_PIPELINE in
$prefix/Mailman/Defaults.py and (optionaly) add
configuration directives to $prefix/Mailman/mm_cfg.py

Mail that is above the ..._DISCARD_SCORE is silently
thrown away; above the ..._HOLD_SCORE is held for
moderation. The ...MEMBER_BONUS subtracts that score
from the tagged score if the sender is on the list.

One could easily customize the error/warning messages
in the top of this file.

It MAY be necessary to tweek the regular expression
that actualy sucks out the score from the headers...
Uncomment my debug syslog lines to help.


Comment By: PieterB (pieterb)
Date: 2003-11-16 15:59

Logged In: YES 

I noticed there are currently 3 patches concerning 
534577  Add SpamAssassin filter to mail pipeline jhenstridge 
2002-03-25 Open
640518  SpamAssassin handler jparise 2002-11-18 Open
840426  SpamAssassin handler for pre-tagged mail jeffwarnica 
2003-11-11 Open

I constructed a similar handler for SpamAssassin which can 
be used
both for systems that pre-tag the messages and for systems 
want to use python's to tag the message using spamd/spamc.

It's behavioure can be controlled by the mm_cfg parameter
SPAMASSASSIN_USE_HEADERS. It parsers both the score and 
the symbols
(tests) from the SpamAssassin-header.

It's based on 
and should be able to handle both kinds of 

It can be found at 

It would be great if a SpamAssassin.py will be integrated in 
2.1.4! Can anybody commit this SpamAssassin.py and James 
his spamd.py
to the Mailman CVS?

Feedback is welcome,



You can respond by visiting: 

More information about the Mailman-coders mailing list