Skip to content

Improve EML export: Handle plain text and HTML bodies correctly #8833

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

Merged
merged 2 commits into from
May 15, 2025

Conversation

firefly-cpp
Copy link
Contributor

This minor fix ensures the correct Content-Type is set based on the email content. Without it, plain text emails would be incorrectly marked as HTML, which can cause formatting issues or display problems in some email clients.

@charlag
Copy link
Contributor

charlag commented Apr 4, 2025

Hey, thank you for the fix, but I think tests need some fixing

@firefly-cpp firefly-cpp force-pushed the eml-export-plain-vs-html branch from 761bc51 to 33fc328 Compare April 4, 2025 09:16
@firefly-cpp
Copy link
Contributor Author

@charlag, please re-run pipeline. Lint issues are still present (for now).

@charlag
Copy link
Contributor

charlag commented Apr 4, 2025

Thank, would be good to add a test for text/html specifically but we can also do it later

@firefly-cpp
Copy link
Contributor Author

Thanks! Yes. Good point! However, we can leave it for now and count on this for further iterations.

Please take a look at the linter issue. TS isn’t my primary environment, so fixing these problems can be a bit time-consuming for me.

@charlag
Copy link
Contributor

charlag commented Apr 4, 2025

If you just run npm run style:fix it will fix it but I can also do it later if you like!

@charlag
Copy link
Contributor

charlag commented Apr 7, 2025

I formatted it and added a test case, it's good to go for the next release :)

@wrdhub wrdhub added this to the Next Mail Client Release milestone Apr 25, 2025
@hrb-hub hrb-hub force-pushed the dev-mail branch 2 times, most recently from 6b77beb to 5b869d5 Compare May 15, 2025 09:59
@hrb-hub hrb-hub force-pushed the eml-export-plain-vs-html branch from 5a239da to 1be9087 Compare May 15, 2025 15:10
@hrb-hub hrb-hub merged commit 1be9087 into tutao:dev-mail May 15, 2025
6 checks passed
@hrb-hub hrb-hub removed this from the Partial Word Search milestone Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants