Include message-id in bounce log

Bug #558293 reported by akuchling
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
New
Undecided
Unassigned

Bug Description

The attached patch improves the content of the bounce log, determining the message-id of the bounced message.
This should make it possible for mmdsr or similar tools to determine what percentage of e-mails bounced.

The patch also exercises the message-id code in test_bounces.py. Currently it fails because some of the messages in tests/bounces/ have mbox-style 'From ' lines,
and this seems to make email.Message ignore the headers; this causes test_bounces.py to fail at the moment after the patch is applied.

Revision history for this message
akuchling (akuchling) wrote :

The file bounce-log.txt was added: None

Revision history for this message
akuchling (akuchling) wrote :

Logged In: YES
user_id=11375
Originator: YES

Here's an updated version of the patch that leaves the <> characters in message-ids, and updates the tests correspondingly.

File Added: bounce-log-2.txt

Revision history for this message
akuchling (akuchling) wrote :

The file bounce-log-2.txt was added: Updated version of the patch

Revision history for this message
akuchling (akuchling) wrote :

Logged In: YES
user_id=11375
Originator: YES

The bounce-analysis branch on Launchpad includes this patch, plus a contrib/ script that analyzes Mailman and Postfix logs to produce a delivery report. See https://code.launchpad.net/~amk/mailman/bounce-analysis

I believe the branch can be merged into the Mailman 2.2. (We probably don't want to change the log formats in the 2.1.x series.)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.