New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
email.Header misparses mixed headers #37495
Comments
email.Header.decode_header() misparses headers with =?ISO-8859-1?Q?Andr=E9?= Pirard <PIRARD@vm1.ulg.ac.be> gets parsed as AndréPirard <PIRARD@vm1.ulg.ac.be> where there should obviously be a space between André Also, I see it's trying to handle continuation lines, 'Re: =?mac-iceland?q?r=8Aksm=9Arg=8Cs?= baz\n foo bar I think I'll just do a patch... /Anders P.S. It seems at least remotely related to Bug#552957 |
Logged In: YES The first bug above has already been fixed in email 2.5 |
Logged In: YES The first bug is still there... With version 1.19 from CVS I >>> print
unicode(Header.make_header(Header.decode_header('=?ISO-8859-1?Q?Andr=E9?=
Pirard <PIRARD@vm1.ulg.ac.be>'))).encode('latin-1')
AndréPirard <PIRARD@vm1.ulg.ac.be> (The problem is that whitespaces get stripped of on line 91: The continuation line bug seems to be fixed however. /Anders |
Logged In: YES Try current cvs. |
Logged In: YES Looks OK. |
Logged In: YES I am using python 2.4 and still have this problem. To be |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: