-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Remaining utf8 bits #10008
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
base: main
Are you sure you want to change the base?
Remaining utf8 bits #10008
Conversation
38b9e53 to
221eb96
Compare
|
@arnt I updated the pr, we already use MIME4J 0.8.13. Thank you for the update! |
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.
Thank you! Just a small null safety check missing.
mail/common/src/main/java/com/fsck/k9/mail/helper/Rfc822Token.java
Outdated
Show resolved
Hide resolved
| stringEquals(mComment, other.mComment)); | ||
| } | ||
|
|
||
| public static String withULabelDomain(final String address) { |
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.
Please consider adding @Nullable to the method and to the parameter as well.
| public static String withULabelDomain(final String address) { | |
| @Nullable | |
| public static String withULabelDomain(final @Nullable String address) { |
An header such as From: [email protected] is syntax according to RFCs 822 and 5322, but should not be shown to users because the "xn--gr-zia" is as user-unfriendly as it is phisher-friendly. This commit makes Thunderbird morph addresses that used xn-- into the pure unicode form before they can be shown to the user. This also implies that the human-readable form is used in replies.
6fe9d6b to
c0e0798
Compare
What! I've looked, and it seems that I rebased on on my laptop and then worked on my normal desktop at home, where I was still on code from the end of July. That implies that this code isn't as thoroughly tested as I thought. Sorry. I'm on the road this week without my test phones. I'm running 'gradle check' now. I'll test properly when I'm home next week. |
This contains two changes that build on the earlier EAI work and completes the feature.