summaryrefslogtreecommitdiff
path: root/Mailman
diff options
context:
space:
mode:
authorbwarsaw2001-05-22 21:06:47 +0000
committerbwarsaw2001-05-22 21:06:47 +0000
commit56171c8065e72f1ec3a73317ee6682fe0eb04638 (patch)
tree22f46e40dde45351aa492e74bb58fb21d7cd58fe /Mailman
parentcf89555ebe7e0778ab30eef5bea0c3fd634c9911 (diff)
downloadmailman-56171c8065e72f1ec3a73317ee6682fe0eb04638.tar.gz
mailman-56171c8065e72f1ec3a73317ee6682fe0eb04638.tar.zst
mailman-56171c8065e72f1ec3a73317ee6682fe0eb04638.zip
process(): It is possible that the mlist passed in is None, which
means that the message does not originate from a mailing list. In that case, admin should be the email address of MAILMAN_OWNER.
Diffstat (limited to 'Mailman')
-rw-r--r--Mailman/Handlers/SMTPDirect.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mailman/Handlers/SMTPDirect.py b/Mailman/Handlers/SMTPDirect.py
index 767f272e0..237ab112d 100644
--- a/Mailman/Handlers/SMTPDirect.py
+++ b/Mailman/Handlers/SMTPDirect.py
@@ -49,7 +49,10 @@ def process(mlist, msg, msgdata):
if not recips:
# Nobody to deliver to!
return
- admin = mlist.GetAdminEmail()
+ if mlist:
+ admin = mlist.GetAdminEmail()
+ else:
+ admin = mm_cfg.MAILMAN_OWNER
msgtext = msg.get_text()
#
# Split the recipient list into SMTP_MAX_RCPTS chunks. Most MTAs have a