David Gibbs wrote:


I think I can generate a patch, but in the meantime, please copy the
SpamDetect.py file from 2.1.6 distribution and restart.


I've temporarily removed the SpamDetect module from the owner pipeline
and it seems to be working ok for now.


David,

Can you test this patch?

Removing SpamDetect from the owner pipeline means spams pass through to the list owner. This should be inconvenient.


--
Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/
Index: SpamDetect.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Handlers/SpamDetect.py,v
retrieving revision 2.3.2.10
diff -u -r2.3.2.10 SpamDetect.py
--- SpamDetect.py       31 Dec 2005 06:15:33 -0000      2.3.2.10
+++ SpamDetect.py       12 Jan 2006 00:05:56 -0000
@@ -92,8 +92,12 @@
 
 
 def process(mlist, msg, msgdata):
-    if msgdata.get('approved') or msgdata.get('reduced_list_headers'):
-        # TK: 'reduced_list_headers' is intenally crafted message (virgin).
+    # Do not spam check if the messages is approved or if the message
+    # was internally crafted and sent to the -owner address like
+    # message hold notification.  This avoids loop of hold notifications
+    # since this module checks deep into the attachment headers.
+    if msgdata.get('approved') or\
+       msgdata.get('toowner') and msg.get('x-list-administrivia') == 'yes':
         return
     # First do site hard coded header spam checks
     for header, regex in mm_cfg.KNOWN_SPAMMERS:
------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp

Reply via email to