aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbwarsaw <>2005-05-13 04:37:03 +0000
committerbwarsaw <>2005-05-13 04:37:03 +0000
commit264c89eee7d25b5ad439ef1f0304eb47ce9e7d84 (patch)
treea1c4d367413e737a819d9670ff64c79fbf69fca9
parentbce07e58accbc82371ad56ca0b143b916bb9bfde (diff)
downloadmailman2-264c89eee7d25b5ad439ef1f0304eb47ce9e7d84.tar.gz
mailman2-264c89eee7d25b5ad439ef1f0304eb47ce9e7d84.tar.xz
mailman2-264c89eee7d25b5ad439ef1f0304eb47ce9e7d84.zip
prefix_subject(): Don't double escape the prefix_pattern.
-rw-r--r--Mailman/Handlers/CookHeaders.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Mailman/Handlers/CookHeaders.py b/Mailman/Handlers/CookHeaders.py
index 993c0471..6b81546e 100644
--- a/Mailman/Handlers/CookHeaders.py
+++ b/Mailman/Handlers/CookHeaders.py
@@ -267,9 +267,6 @@ def prefix_subject(mlist, msg, msgdata):
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: