-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Missing line breaks after Content-Type header when using multiple parts #412
Labels
bug
Something isn't working
Comments
Hi @Thomas2500, thanks for the report and sorry for the inconveniences. I'll have a look at this right now and will release a regression-release one it's fixed. |
wneessen
added a commit
that referenced
this issue
Jan 12, 2025
This fixes a regression that was introduced in the S/MIME signing code of v0.6.0 which caused the msgwriter to not add a newline between the first boundary and the multipart causing the mail to be unable to render in mail clients.
This was referenced Jan 12, 2025
This has been fixed with #413. |
v0.6.1 has been released with the fix included. |
Just tested it and everything works fine now, tank you for the very fast fix! |
Thanks for the confirmation! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Hello!
I was just about to implement the library, but had some big problems displaying my mails correctly in GMail and Thunderbird.
Either no content was displayed or the content was displayed with broken line breaks as well as plain text and HTML content at the same time.
After downgrading the library from version 0.6.0 to 0.5.2, everything works again.
With version 0.6.0, the headers in my email are structured as follows:
(Content-Type -> boundary seems to not finish the line correctly with a line break, containing two values)
After reverting back to v0.5.2, the same code generates the following content which let's the email render correctly within GMail and Thunderbird:
To Reproduce
Create a new message containing a text/plain part and one text/html part.
E.g. by using the following snippet (shortened out of my code, sould be reproduceable with it):
Expected behaviour
Both parts of email content should be written within their individual parts with line break after ending the Content-Type header, allowing email programs to correctly parse the mail contents.
Screenshots
No response
Attempted Fixes
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: