diff options
| author | bwarsaw | 2003-02-23 19:57:32 +0000 |
|---|---|---|
| committer | bwarsaw | 2003-02-23 19:57:32 +0000 |
| commit | 4c703a2956a615e07dac647cc4e3e01f3b523ed7 (patch) | |
| tree | f391c4e0481c53a9c956e2a5c61da7147ab45fbf | |
| parent | 2ec64fba8b7790fe85bd6642e34a5b6b502e8d92 (diff) | |
| download | mailman-4c703a2956a615e07dac647cc4e3e01f3b523ed7.tar.gz mailman-4c703a2956a615e07dac647cc4e3e01f3b523ed7.tar.zst mailman-4c703a2956a615e07dac647cc4e3e01f3b523ed7.zip | |
| -rw-r--r-- | Mailman/Handlers/CookHeaders.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Handlers/CookHeaders.py b/Mailman/Handlers/CookHeaders.py index c4ad06ab4..9ef5550cd 100644 --- a/Mailman/Handlers/CookHeaders.py +++ b/Mailman/Handlers/CookHeaders.py @@ -229,6 +229,8 @@ def prefix_subject(mlist, msg, msgdata): if len(lines) > 1 and lines[1] and lines[1][0] in ' \t': ws = lines[1][0] msgdata['origsubj'] = subject + if not subject: + subject = _('(no subject)') # The header may be multilingual; decode it from base64/quopri and search # each chunk for the prefix. BAW: Note that if the prefix contains spaces # and each word of the prefix is encoded in a different chunk in the @@ -241,8 +243,6 @@ def prefix_subject(mlist, msg, msgdata): # The subject's already got the prefix, so don't change it return del msg['subject'] - if not subject: - subject = _('(no subject)') # Get the header as a Header instance, with proper unicode conversion h = uheader(mlist, prefix, 'Subject', continuation_ws=ws) for s, c in headerbits: |
