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.generator.Generator doesn't mangle "From " lines in MIME preamble #59437
Comments
tar xvfz maildir_bug.tar.gz The attachment contains a maildir with a single message. This message has two body lines beginning with 'From '. When converted to mbox using the maildir2mbox.py, only the second line gets a '>' at the beginning. Thunderbird subsequently splits the message in two. I think the fix is to put a '>' in front of each 'From ' line and not just the second one. However, when I did that, Thunderbird displayed the '>', so either it is not the right fix, or Thunderbird has a bug. I am using Python 2.7.1. I searched the bug tracker and didn't see this issue, so decided to file even though I don't have the latest version. Chris |
Hi and thanks for the report. It seems that this is a bug in email.generator.Generator, as it fails to mangle "From " lines in the MIME preamble (after the headers, before the first "--Boundary..." line). |
New changeset b97f65f2298d by R David Murray in branch '3.2': New changeset 80b81658455b by R David Murray in branch 'default': New changeset 9f500171c592 by R David Murray in branch '2.7': |
Same problem with the epilogue. Fixed both. |
Thanks. The news entry should probably say 'From ' instead of 'From'. |
New changeset 0caff799e4bf by R David Murray in branch '3.2': New changeset d53524c43d0e by R David Murray in branch 'default': New changeset e9ffde2c7da3 by R David Murray in branch '2.7': |
Thanks everyone! |
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: