summaryrefslogtreecommitdiff
path: root/modules/mm_admin.py
diff options
context:
space:
mode:
authormailman1998-03-26 05:16:10 +0000
committermailman1998-03-26 05:16:10 +0000
commitb6247b8f036cc120ae1aec307bd82814f31ec3aa (patch)
tree13d85159c909628d5e5b08effc0839c7aa6efef1 /modules/mm_admin.py
parentd9e281abce61feb1c6b6d68f0d5ceb5a7eb9985d (diff)
downloadmailman-b6247b8f036cc120ae1aec307bd82814f31ec3aa.tar.gz
mailman-b6247b8f036cc120ae1aec307bd82814f31ec3aa.tar.zst
mailman-b6247b8f036cc120ae1aec307bd82814f31ec3aa.zip
Diffstat (limited to 'modules/mm_admin.py')
-rw-r--r--modules/mm_admin.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/mm_admin.py b/modules/mm_admin.py
index 30fe131e3..33d2f2b17 100644
--- a/modules/mm_admin.py
+++ b/modules/mm_admin.py
@@ -126,8 +126,12 @@ class ListAdmin:
self.Post(msg, 1)
elif value == 1:
# Refuse.
- request = 'Posting of your message entitled:\n\t\t %s' % \
- msg.getheader('subject')
+ subj = msg.getheader('subject')
+ if subj == None:
+ request = 'Posting of your untitled message'
+ else:
+ request = ('Posting of your message entitled:\n\t\t %s'
+ % subj)
if not comment:
comment = data[1]
if not self.dont_respond_to_post_requests: