diff options
| author | bwarsaw | 2003-02-05 05:16:45 +0000 |
|---|---|---|
| committer | bwarsaw | 2003-02-05 05:16:45 +0000 |
| commit | 3f79959b177335eb0257b964ee9ba199c4f35c9c (patch) | |
| tree | d653013a691acffb5e0f3b5732dca319d0077d6c /Mailman/Handlers/CookHeaders.py | |
| parent | 693d47fee48fe3084819662c2c04e845cecced26 (diff) | |
| download | mailman-3f79959b177335eb0257b964ee9ba199c4f35c9c.tar.gz mailman-3f79959b177335eb0257b964ee9ba199c4f35c9c.tar.zst mailman-3f79959b177335eb0257b964ee9ba199c4f35c9c.zip | |
Diffstat (limited to 'Mailman/Handlers/CookHeaders.py')
| -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 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] |
