Update of /cvsroot/mailman/mailman/Mailman/Handlers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17320

Modified Files:
      Tag: Release_2_1-maint
        CookHeaders.py 
Log Message:
prefix_subject(): Don't double escape the prefix_pattern.


Index: CookHeaders.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Handlers/CookHeaders.py,v
retrieving revision 2.33.2.12
retrieving revision 2.33.2.13
diff -u -d -r2.33.2.12 -r2.33.2.13
--- CookHeaders.py      13 May 2005 02:34:39 -0000      2.33.2.12
+++ CookHeaders.py      13 May 2005 04:37:03 -0000      2.33.2.13
@@ -267,9 +267,6 @@
     else:
         prefix_pattern = prefix
         old_style = mm_cfg.OLD_STYLE_PREFIXING
-    # Convert [ ( { ) --> \\[ \\( \\{ \\) to feed into re module.
-    # TK: Something magic should be here but after trial and error...
-    prefix_pattern = re.sub('([\[\(\{\)])', '\\\\\g<1>', prefix_pattern)
     subject = re.sub(re.escape(prefix_pattern), '', subject)
     rematch = re.match('((RE|AW|SV)(\[\d+\])?:\s*)+', subject, re.I)
     if rematch:

_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to