METU E-List Admin wrote:
>
>"^X-Mailer: (?!Microsoft Outlook .*)$" has single spacing between the 
>colon and the parenthesis. The screenshot is taken using Chrome on Ubuntu.


The screenshot is problematic for the reason that it is incomplete. The
whole page is not shown and the content of some of the text boxes is
longer than the box. It would be much better to post something like
the relevant part of

 bin/config_list -o - LISTNAME | grep -A20 header_filter_rules

to provide this information.


>We have removed the Mailman version number using the configuration file. 
>I think that configuration also removes the version number from the 
>headers. If it is a problem, we can convert it to the original state.


I don't think this would be a problem. The question still remains as to
why your header_filter_rules rule is apparently not working.

You could try applying the attached patch to
Mailman/Handlers/SpamDetect.py and restarting Mailman. This will
produce a 'debug' log in Mailman's logs/ directory with information
about all the header_filter_rules hits which may help find what's
going wrong.

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

--- test-mailman-2.1/Mailman/Handlers/SpamDetect.py     2012-02-05 
13:28:46.000000000 -0800
+++ test-mailman/Mailman/Handlers/SpamDetect.py 2013-02-06 08:16:35.390728500 
-0800
@@ -34,6 +34,7 @@
 from Mailman import i18n
 from Mailman.Utils import GetCharSet
 from Mailman.Handlers.Hold import hold_for_approval
+from Mailman.Logging.Syslog import syslog
 
 try:
     True, False
@@ -107,6 +108,7 @@
             if not pattern.strip():
                 continue
             if re.search(pattern, headers, re.IGNORECASE|re.MULTILINE):
+                syslog('debug', 'pattern: %s\naction: %s', pattern, action)
                 if action == mm_cfg.DISCARD:
                     raise Errors.DiscardMessage
                 if action == mm_cfg.REJECT:
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to