aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Archiver/HyperArch.py
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2010-02-22 17:00:40 -0800
committerMark Sapiro <mark@msapiro.net>2010-02-22 17:00:40 -0800
commiteddab860303c9a970a0428b0cda6561244e450b9 (patch)
tree72741774a58ed7b564e1cb2f2698166f2bf44844 /Mailman/Archiver/HyperArch.py
parent1e8dac6da00d176aa6cf10053e5a29c5c26b30f9 (diff)
downloadmailman2-eddab860303c9a970a0428b0cda6561244e450b9.tar.gz
mailman2-eddab860303c9a970a0428b0cda6561244e450b9.tar.xz
mailman2-eddab860303c9a970a0428b0cda6561244e450b9.zip
Additional cleanup of pipermail threading
Diffstat (limited to '')
-rw-r--r--Mailman/Archiver/HyperArch.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/Archiver/HyperArch.py b/Mailman/Archiver/HyperArch.py
index a532c81e..2c22b33d 100644
--- a/Mailman/Archiver/HyperArch.py
+++ b/Mailman/Archiver/HyperArch.py
@@ -438,8 +438,11 @@ class Article(pipermail.Article):
prefix_pat = re.sub(r'%\d*d', r'\s*\d+\s*', prefix_pat)
subject = re.sub(prefix_pat, '', subject)
subject = subject.lstrip()
+ # MAS Should we strip FW and FWD too?
strip_pat = re.compile('^((RE|AW|SV|VS)(\[\d+\])?:\s*)+', re.I)
stripped = strip_pat.sub('', subject)
+ # Also remove whitespace to avoid folding/unfolding differences
+ stripped = re.sub('\s', '', stripped)
return stripped
def decode_charset(self, field):