diff options
author | Mark Sapiro <mark@msapiro.net> | 2008-06-20 12:49:24 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2008-06-20 12:49:24 -0700 |
commit | fb79444a20297f9a98c1e515527de757e00cda56 (patch) | |
tree | 1b5b170cbfb986713388646bb306b32b32ae2c03 /Mailman | |
parent | a7ac3c24ba6affeb3fdde672e16389136e2a2820 (diff) | |
download | mailman2-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')
-rw-r--r-- | Mailman/Handlers/CookHeaders.py | 5 |
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'] |