AttributeError: Message instance has no attribute 'sender'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Fix Released
|
High
|
Barry Warsaw |
Bug Description
This is with mailman3:
Feb 20 14:23:07 2013 (5721) Uncaught runner exception: MIMEMultipart instance has no attribute 'sender'
Feb 20 14:23:07 2013 (5721) Traceback (most recent call last):
File "/srv/dev/
self.
File "/srv/dev/
elif msg.sender:
AttributeError: MIMEMultipart instance has no attribute 'sender'
Feb 20 14:23:07 2013 (5721) SHUNTING: 1361370187.
Feb 20 14:23:07 2013 (5721) Uncaught runner exception: Message instance has no attribute 'sender'
Feb 20 14:23:07 2013 (5721) Traceback (most recent call last):
File "/srv/dev/
self.
File "/srv/dev/
elif msg.sender:
AttributeError: Message instance has no attribute 'sender'
Feb 20 14:23:08 2013 (5721) SHUNTING: 1361370187.
The message seems to be originating from mailman, it's a digest.
I'm attaching a very simple patch that handles the case where there is no sender header.
Related branches
- Barry Warsaw: Approve
-
Diff: 289 lines (+124/-46)6 files modifiedsrc/mailman/core/tests/test_runner.py (+23/-2)
src/mailman/email/message.py (+6/-0)
src/mailman/handlers/tests/test_cook_headers.py (+54/-0)
src/mailman/runners/digest.py (+2/-2)
src/mailman/runners/tests/test_digest.py (+17/-42)
src/mailman/testing/helpers.py (+22/-0)
Changed in mailman: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Barry Warsaw (barry) |
milestone: | none → 3.0.0b5 |
Changed in mailman: | |
status: | Triaged → Fix Committed |
Changed in mailman: | |
status: | Fix Committed → Fix Released |