aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2008-06-20 12:49:24 -0700
committerMark Sapiro <mark@msapiro.net>2008-06-20 12:49:24 -0700
commitfb79444a20297f9a98c1e515527de757e00cda56 (patch)
tree1b5b170cbfb986713388646bb306b32b32ae2c03 /Mailman/Handlers
parenta7ac3c24ba6affeb3fdde672e16389136e2a2820 (diff)
downloadmailman2-fb79444a20297f9a98c1e515527de757e00cda56.tar.gz
mailman2-fb79444a20297f9a98c1e515527de757e00cda56.tar.xz
mailman2-fb79444a20297f9a98c1e515527de757e00cda56.zip
Fixed CookHeaders.py which in some cases with new style prefixing
would insert an extra space between the prefix and the subject.
Diffstat (limited to 'Mailman/Handlers')
-rw-r--r--Mailman/Handlers/CookHeaders.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mailman/Handlers/CookHeaders.py b/Mailman/Handlers/CookHeaders.py
index 671922ab..3483225e 100644
--- a/Mailman/Handlers/CookHeaders.py
+++ b/Mailman/Handlers/CookHeaders.py
@@ -298,7 +298,10 @@ def prefix_subject(mlist, msg, msgdata):
if old_style:
h = u' '.join([recolon, prefix, subject])
else:
- h = u' '.join([prefix, recolon, subject])
+ if recolon:
+ h = u' '.join([prefix, recolon, subject])
+ else:
+ h = u' '.join([prefix, subject])
h = h.encode('us-ascii')
h = uheader(mlist, h, 'Subject', continuation_ws=ws)
del msg['subject']