From fb79444a20297f9a98c1e515527de757e00cda56 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Fri, 20 Jun 2008 12:49:24 -0700 Subject: Fixed CookHeaders.py which in some cases with new style prefixing would insert an extra space between the prefix and the subject. --- Mailman/Handlers/CookHeaders.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Mailman/Handlers') 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'] -- cgit v1.2.3