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

SourceForge.net noreply at sourceforge.net
Fri Apr 14 10:30:13 CEST 2006


Bugs item #1470212, was opened at 2006-04-13 20:35
Message generated for change (Comment added) made by hdiwan650
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.


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

Comment By: Hasan Diwan (hdiwan650)
Date: 2006-04-14 01:30

Message:
Logged In: YES 
user_id=1185570

Use rfc822.py in lieu of mailbox to first parse the message
into an rfc822.Message... then pass it to the
Mailbox.PortableUnixMailbox constructor. 

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

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