This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author inyeol
Recipients
Date 2002-10-16.19:14:26
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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
History
Date User Action Args
2007-08-23 14:06:58adminlinkissue624254 messages
2007-08-23 14:06:58admincreate