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
error flattening complex smime signed message #40361
Comments
Python 2.3.3 [GCC 3.2.2] on linux2 Complex SMIME signed messages parsed and flattened A diff between an "original" SMIME signed messaged
The email-parsed message splits the signature header Attached to this bug a .zip archive with:
openssl command used to verify #2 and #3: openssl smime -verify -in bugmsg_signed.eml -CAfile openssl smime -verify -in bugmsg_signed_parsed.eml |
Logged In: YES I would like to add that I think this bug is quite |
Logged In: YES In case it is any help, I tried to find the problem in the It seems to me that the problem is in Lib/email/Message.py, I think the whitespace should somehow be saved (not How this should be implemented I gladly leave to someone who |
Logged In: YES Adding my voice that the bug is important. |
At least for the header wrapping issue, adding a new handler to the default Generator implementation should provide an easy solution. I just created patch 968430 http://tinyurl.com/2chhz6 for this. From mailman bug report 815297 http://tinyurl.com/2a8dta I understand that there is a fix in mailman for this issue as well, but I believe this patch would be a fix any python program would want, not just mailman. There remains an issue about leading space in headers, mentioned in that mailman problem report as well. The cause is an lstrip call in FeedParser. However removing that would probably break a lot of existing programs. And modifying all methods accessing the headers to remove or add leading space would be somewhat ugly. Right now I'm trying to figure out how to save the unmodified body for every multipart/signed message, so that it can be stored with the message and used without any modifications during generation. |
Patch at bpo-1670765. |
I think if we can fix bpo-1590744, this will be completely fixed. |
This issue is not newcomer friendly, I remove the easy keyword. |
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: