diff options
author | Mark Sapiro <msapiro@value.net> | 2012-10-21 13:32:18 -0700 |
---|---|---|
committer | Mark Sapiro <msapiro@value.net> | 2012-10-21 13:32:18 -0700 |
commit | a190bc8d3d22a616181cb86a864e00e2a7f7ec61 (patch) | |
tree | 19b84ef62b52b667a67a5ac32ea3b381de53d5a9 /Mailman/Queue | |
parent | 47b1ade422b0bb61db9a2a45187b120df0aafcc7 (diff) | |
download | mailman2-a190bc8d3d22a616181cb86a864e00e2a7f7ec61.tar.gz mailman2-a190bc8d3d22a616181cb86a864e00e2a7f7ec61.tar.xz mailman2-a190bc8d3d22a616181cb86a864e00e2a7f7ec61.zip |
IncomingRunner now logs rejected messages to the vette log.
Diffstat (limited to 'Mailman/Queue')
-rw-r--r-- | Mailman/Queue/IncomingRunner.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Mailman/Queue/IncomingRunner.py b/Mailman/Queue/IncomingRunner.py index 71d93919..bcc51209 100644 --- a/Mailman/Queue/IncomingRunner.py +++ b/Mailman/Queue/IncomingRunner.py @@ -165,6 +165,13 @@ class IncomingRunner(Runner): # longer needs to be queued. return 0 except Errors.RejectMessage, e: + # Log this. + syslog('vette', """Message rejected, msgid: %s + list: %s, + handler: %s, + reason: %s""", + msg.get('message-id', 'n/a'), + mlist.real_name, handler, e.notice()) mlist.BounceMessage(msg, msgdata, e) return 0 except: |