[ mailman-Patches-1032434 ] make KNOWN_SPAMMERS work for headers
appearing mult. times
SourceForge.net
noreply at sourceforge.net
Wed Sep 22 10:39:59 CEST 2004
Patches item #1032434, was opened at 2004-09-22 10:39
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=1032434&group_id=103
Category: mail delivery
Group: Mailman 2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Alexander Bergolth (bergolth)
Assigned to: Nobody/Anonymous (nobody)
Summary: make KNOWN_SPAMMERS work for headers appearing mult. times
Initial Comment:
Hi!
Currently the header check against the KNOWN_SPAMMERS
config option in SpamDetect.py uses msg[header], i.e.
__getitem__. This method only checks against the first
matching header:
Note that if the header appeared multiple
times, exactly which
occurrance gets returned is undefined. Use
getall() to get all
the values matching a header field name.
I've changed the code to use msg.get_all() instead.
--leo
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=1032434&group_id=103
More information about the Mailman-coders
mailing list