Emails without a text/plain part crash the Approved rule

Bug #1158721 reported by Aurélien Bompard on 2013-03-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
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

Aurélien Bompard (abompard) wrote :
Barry Warsaw (barry) on 2013-03-22
tags: added: mailman3
Changed in mailman:
status: New → Triaged
milestone: none → 3.0.0b4
assignee: nobody → Barry Warsaw (barry)
importance: Undecided → Medium
Barry Warsaw (barry) on 2014-04-22
Changed in mailman:
milestone: 3.0.0b4 → 3.0.0b5
Barry Warsaw (barry) on 2014-12-04
Changed in mailman:
status: Triaged → Fix Committed
Barry Warsaw (barry) on 2014-12-30
Changed in mailman:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers