MailHost, TypeError on nested MultiPart messages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The following part breaks, if we have an nested MultiPart Message like:
Content-Type: multipart/
MIME-Version: 1.0
Date: Sun, 27 Aug 2006 17:00:00 +0200
Subject: My multipart email
To: Foo Bar <email address hidden>
From: <email address hidden>
--=====
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-
This is plain text.
--=====
Content-Type: multipart/related; boundary=
MIME-Version: 1.0
--=====
Content-Type: text/html; charset="utf-8"
MIME-Version: 1.0
Content-
<p>This is html.</p>
--=====
--=====
- for index, payload in enumerate(
- if not isinstance(payload, Message):
- payload = message_
- charset_match = CHARSET_
- if payload.
- # No binary file
- if charset and not charset_match:
- payload.
- elif charset_match and not charset:
- charset = charset_
- mo.get_
Changed in zope2: | |
status: | New → Confirmed |
Changed in zope2: | |
milestone: | none → 2.10.12 |
status: | Confirmed → Fix Committed |
Changed in zope2: | |
milestone: | 2.10.12 → 2.12.12 |
Changed in zope2: | |
status: | Fix Committed → Fix Released |
here is the test file witch test the nested mutipart message.