[Python-bugs-list] [ python-Bugs-586899 ] email package does not work with mailbox

noreply@sourceforge.net noreply@sourceforge.net
Fri, 26 Jul 2002 02:19:06 -0700


Bugs item #586899, was opened at 2002-07-26 10:19
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=586899&group_id=5470

Category: Python Library
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Paul Moore (pmoore)
Assigned to: Nobody/Anonymous (nobody)
Summary: email package does not work with mailbox

Initial Comment:
The email.message_from_file function does not seem to 
work correctly when used as the "factory" argument to 
the mailbox.UnixMailbox function. The "From_" 
separator line gets included in the preceding mail 
message.

For a demonstration of this, see the attached zip file. 
The Python code loads the first message in the mailbox 
file and then displays the final line. This shows the 
From_ line from the subsequent message (correctly 
quoted with a ">"!!!).

This is with Python 2.2 on Windows 2000. The Python 
banner line is

Python 2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit 
(Intel)] on win32

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

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