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
Fix utf-8 encoding #5096 #5118
Fix utf-8 encoding #5096 #5118
Conversation
Can you please also add tests and/or modify the existing ones so that this change is tested properly? |
Hi @wRAR. I changed the positioning of set_charset method for mails with attachments (it is now similar to how it as was at the begining) and removed it for mails without attachments (it is called anyway from the get_payload method if you pass a value for charset) because i feel like this is a better approach. I didn't create new tests or modify the tests a lot, because i feel that is not needed (everything eg. charset, body etc is already tested and I didnt add anything new that needs testing). I would like to hear your thoughts on it and get feedback. Thank you! |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5118 +/- ##
=======================================
Coverage 88.92% 88.92%
=======================================
Files 163 163
Lines 11538 11538
Branches 1877 1877
=======================================
Hits 10260 10260
Misses 969 969
Partials 309 309
|
If you fixed #5096, then that’s something new that needs to be tested. You should add/modify tests as needed so that, if you reverted your fix, tests would now break. On a separate note, I wonder if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I've checked the change with my original use case and it fixes it. I've also checked that the changed test doesn't pass without the code changes, not sure if we need to add an explicit check that the body is base64-encoded, though we don't do that in the other test so that's fine to leave as is.
The test change covers it, because of the added
Removing breaks the message, as it now lacks |
Hello, this possibly fixes #5096
Fixes #5096, closes #5506