summaryrefslogtreecommitdiff
path: root/Mailman/Handlers/CookHeaders.py
diff options
context:
space:
mode:
authorbwarsaw2003-02-05 05:16:45 +0000
committerbwarsaw2003-02-05 05:16:45 +0000
commit3f79959b177335eb0257b964ee9ba199c4f35c9c (patch)
treed653013a691acffb5e0f3b5732dca319d0077d6c /Mailman/Handlers/CookHeaders.py
parent693d47fee48fe3084819662c2c04e845cecced26 (diff)
downloadmailman-3f79959b177335eb0257b964ee9ba199c4f35c9c.tar.gz
mailman-3f79959b177335eb0257b964ee9ba199c4f35c9c.tar.zst
mailman-3f79959b177335eb0257b964ee9ba199c4f35c9c.zip
Diffstat (limited to 'Mailman/Handlers/CookHeaders.py')
-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 76095a136..c4ad06ab4 100644
--- a/Mailman/Handlers/CookHeaders.py
+++ b/Mailman/Handlers/CookHeaders.py
@@ -221,7 +221,10 @@ def prefix_subject(mlist, msg, msgdata):
prefix = mlist.subject_prefix
subject = msg.get('subject', '')
# Try to figure out what the continuation_ws is for the header
- lines = subject.splitlines()
+ if isinstance(subject, Header):
+ lines = str(subject).splitlines()
+ else:
+ lines = subject.splitlines()
ws = '\t'
if len(lines) > 1 and lines[1] and lines[1][0] in ' \t':
ws = lines[1][0]