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.

classification
Title: email 2.4.3 pkg mail header error
Type: Stage:
Components: Library (Lib) Versions: Python 2.2
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: barry Nosy List: barry, inyeol
Priority: normal Keywords:

Created on 2002-10-16 19:14 by inyeol, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test.tgz inyeol, 2002-10-16 19:14 test cases which show the bug.
Messages (2)
msg12801 - (view) Author: Inyeol Lee (inyeol) Date: 2002-10-16 19:14
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
msg12802 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2003-03-07 23:20
Logged In: YES 
user_id=12800

Both examples now work in email 2.5 / Python 2.3 cvs.
History
Date User Action Args
2022-04-10 16:05:45adminsetgithub: 37331
2002-10-16 19:14:26inyeolcreate