[ python-Bugs-1470212 ] mailbox.PortableUnixMailbox fails to parse 'From ' in body

SourceForge.net noreply at sourceforge.net
Fri Apr 14 05:35:33 CEST 2006


Bugs item #1470212, was opened at 2006-04-14 03:35
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1470212&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Lars Kellogg-Stedman (larsks)
Assigned to: Nobody/Anonymous (nobody)
Summary: mailbox.PortableUnixMailbox fails to parse 'From ' in body

Initial Comment:
I have a Unix mailbox file that contains the following
text in the body of a message:

---[ cut here ]---
EFCO also offers casements with integral blinds. See:=20
http://www.efcocorp.com/public/earm/products/default.asp?j=3D1&P=3D43&L=3D=
1=20
>From that page, select select "Features and Benefits"
from under the
heading "Product Overview"=20
---[ cut here ]---

mailbox.PortableUnixMailbox erroneously interprets the
"From" at the beginning of the line as the beginning of
a new message.  Since 'From ' is only a valid header at
the  beginning of a message, perhaps the module could
look at the following line and see if it looks like an
RFC2822 header before accepting 'From ' as a message
delimiter.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1470212&group_id=5470


More information about the Python-bugs-list mailing list