diff options
author | Mark Sapiro <mark@msapiro.net> | 2015-12-14 14:25:18 -0800 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2015-12-14 14:25:18 -0800 |
commit | 36097ea986f975fd20af2398f28e60670faf3293 (patch) | |
tree | 3c10755ed9563400b933cd9f5c13cb9d697cb00c /Mailman | |
parent | e56056f2296616d333eadd9c847b50456447dab8 (diff) | |
download | mailman2-36097ea986f975fd20af2398f28e60670faf3293.tar.gz mailman2-36097ea986f975fd20af2398f28e60670faf3293.tar.xz mailman2-36097ea986f975fd20af2398f28e60670faf3293.zip |
Ensure white space following subject_prefix.
Diffstat (limited to 'Mailman')
-rwxr-xr-x | Mailman/Handlers/CookHeaders.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Mailman/Handlers/CookHeaders.py b/Mailman/Handlers/CookHeaders.py index acb79166..4e005dc5 100755 --- a/Mailman/Handlers/CookHeaders.py +++ b/Mailman/Handlers/CookHeaders.py @@ -425,6 +425,11 @@ def prefix_subject(mlist, msg, msgdata): except UnicodeError: pass # Get the header as a Header instance, with proper unicode conversion + # Because of rfc2047 encoding, spaces between encoded words can be + # insignificant, so we need to append a space to prefix but only when + # we have Re:. + if recolon: + prefix += ' ' if old_style: h = uheader(mlist, recolon, 'Subject', continuation_ws=ws) h.append(prefix) |