diff options
Diffstat (limited to 'Mailman')
-rw-r--r-- | Mailman/Handlers/SMTPDirect.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Handlers/SMTPDirect.py b/Mailman/Handlers/SMTPDirect.py index e1607358..2604c244 100644 --- a/Mailman/Handlers/SMTPDirect.py +++ b/Mailman/Handlers/SMTPDirect.py @@ -351,11 +351,11 @@ def bulkdeliver(mlist, msg, msgdata, envsender, failures, conn): refused = conn.sendmail(envsender, recips, msgtext) except smtplib.SMTPRecipientsRefused, e: syslog('smtp-failure', 'All recipients refused: %s, msgid: %s', - e, msgid + e, msgid) refused = e.recipients except smtplib.SMTPResponseException, e: syslog('smtp-failure', 'SMTP session failure: %s, %s, msgid: %s', - e.smtp_code, smtp_error, msgid) + e.smtp_code, e.smtp_error, msgid) # If this was a permanent failure, don't add the recipients to the # refused, because we don't want them to be added to failures. # Otherwise, if the MTA rejects the message because of the message |