Emails without a text/plain part crash the Approved rule
Bug #1158721 reported by
Aurélien Bompard
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Fix Released
|
Medium
|
Barry Warsaw |
Bug Description
If an email has no plain text part, the Approved rule will crash with the following message:
AttributeError: 'NoneType' object has no attribute 'get_payload'
The attached patch fixes the bug and adds a unit test for it. It's been generated from the current bzr branch.
Related branches
lp:~abompard/mailman/bug-1158721
- Barry Warsaw: Approve
-
Diff: 54 lines (+35/-1)2 files modifiedsrc/mailman/rules/approved.py (+4/-1)
src/mailman/rules/tests/test_approved.py (+31/-0)
tags: | added: mailman3 |
Changed in mailman: | |
status: | New → Triaged |
milestone: | none → 3.0.0b4 |
assignee: | nobody → Barry Warsaw (barry) |
importance: | Undecided → Medium |
Changed in mailman: | |
milestone: | 3.0.0b4 → 3.0.0b5 |
Changed in mailman: | |
status: | Triaged → Fix Committed |
Changed in mailman: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.