Malte S. Stretz has proposed merging lp:~mss/mailman/3.0-smtp-log-fix into 
lp:mailman.

Requested reviews:
  Mailman Coders (mailman-coders)

For more details, see:
https://code.launchpad.net/~mss/mailman/3.0-smtp-log-fix/+merge/55760

Trivial change: mailman.mta.base did log non-existent Message-Ids as None 
instead of n/a like .delivers does.
-- 
https://code.launchpad.net/~mss/mailman/3.0-smtp-log-fix/+merge/55760
Your team Mailman Coders is requested to review the proposed merge of 
lp:~mss/mailman/3.0-smtp-log-fix into lp:mailman.
=== modified file 'src/mailman/mta/base.py'
--- src/mailman/mta/base.py	2011-01-03 04:52:22 +0000
+++ src/mailman/mta/base.py	2011-03-31 14:30:09 +0000
@@ -72,7 +72,7 @@
         """
         # Do the actual sending.
         sender = self._get_sender(mlist, msg, msgdata)
-        message_id = msg['message-id']
+        message_id = msg.get('message-id', 'n/a')
         try:
             refused = self._connection.sendmail(
                 sender, recipients, msg.as_string())

_______________________________________________
Mailman-coders mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-coders

Reply via email to