aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2016-04-06 07:37:27 -0700
committerMark Sapiro <mark@msapiro.net>2016-04-06 07:37:27 -0700
commit93f11f1a9b9e6f2f1251b1efb75131e0c9839029 (patch)
treea879db599815224b664a0dd6918fee1fdc953307
parent52c355755a5b33c975ec9b3a7535236685bf0c18 (diff)
downloadmailman2-93f11f1a9b9e6f2f1251b1efb75131e0c9839029.tar.gz
mailman2-93f11f1a9b9e6f2f1251b1efb75131e0c9839029.tar.xz
mailman2-93f11f1a9b9e6f2f1251b1efb75131e0c9839029.zip
Fixed a bug in ensuring gated news articles have a Subject:.
Diffstat (limited to '')
-rw-r--r--Mailman/Queue/NewsRunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/Queue/NewsRunner.py b/Mailman/Queue/NewsRunner.py
index d62cb8dd..fe693f28 100644
--- a/Mailman/Queue/NewsRunner.py
+++ b/Mailman/Queue/NewsRunner.py
@@ -112,7 +112,7 @@ def prepare_message(mlist, msg, msgdata):
del msg['subject']
msg['Subject'] = stripped_subject
# Make sure we have a non-blank subject.
- if not msg.get('subject', '').strip():
+ if not msg.get('subject', ''):
del msg['subject']
msg['Subject'] = '(no subject)'
# Add the appropriate Newsgroups: header