[Python-bugs-list] [ python-Bugs-624254 ] email 2.4.3 pkg mail header error

noreply@sourceforge.net noreply@sourceforge.net
Wed, 16 Oct 2002 12:14:26 -0700


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

Category: Python Library
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Inyeol Lee (inyeol)
Assigned to: Nobody/Anonymous (nobody)
Summary: email 2.4.3 pkg mail header error

Initial Comment:
email 2.4.3 pkg bundled with python 2.2.2 deletes parts
of
mail header string.

My python environment is;
Python 2.2.2 (#1, Oct 15 2002, 14:20:16) 
[GCC 2.95.3 20010315 (release)] on sunos5

This is a test script which reads a mail and write it
back;
---
#!/usr/bin/env python
import email
import sys
print email.message_from_file(sys.stdin)
---
The input and output are supposed to be the same,
except for
unix header line and some formatting changes, but with
several
test cases they are different. I attached two test
cases which
show differences.

1. file mail1_errorpart_in and mail1_errorpart_out:
Input file has 6 "Received:" headers. There are missing
parts
in the 4th and 5th 'Received:' headers. Others are
fine.

2. file mail2_errorpart_in and mail2_errorpart_out:
Input file has broken "Cc:" header. The script converts
it without
warning/error but the converted "Cc:" header deletes
several
addresses.

I trimmed test mails just to show error headers. If you
need the
whole one for debugging, let me know at
"inyeol.lee@ieee.org".

Inyeol Lee

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

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