Skip to content

Conversation

@arnt
Copy link
Contributor

@arnt arnt commented Oct 25, 2025

This contains two changes that build on the earlier EAI work and completes the feature.

  • MIME4J needed a parser improvement and new release; without that, Thunderbird would show "unknown sender" for some messages. With 0.8.13 it now shows the correct address. Sorry about the lateness; I overlooked the release of 0.8.13.
  • Addresses such as [email protected] are legal according to the syntax, because the syntax extends rather than narrows RFC5322. However, these addresses are incomprehensible to users, cause questions and even complaints, and are best rewritten to the human-readable form before reaching anyone's screen.

@wmontwe
Copy link
Member

wmontwe commented Nov 3, 2025

@arnt I updated the pr, we already use MIME4J 0.8.13. Thank you for the update!

Copy link
Member

@wmontwe wmontwe left a 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.

@wmontwe wmontwe self-requested a review November 3, 2025 10:48
@wmontwe wmontwe requested a review from rafaeltonholo November 3, 2025 10:48
@wmontwe wmontwe removed their request for review November 3, 2025 10:48
@wmontwe wmontwe removed their assignment Nov 3, 2025
rafaeltonholo
rafaeltonholo previously approved these changes Nov 3, 2025
stringEquals(mComment, other.mComment));
}

public static String withULabelDomain(final String address) {
Copy link
Member

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.

Suggested change
public static String withULabelDomain(final String address) {
@Nullable
public static String withULabelDomain(final @Nullable String address) {

arnt and others added 4 commits November 3, 2025 21:14
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.
@arnt
Copy link
Contributor Author

arnt commented Nov 3, 2025

@arnt I updated the pr, we already use MIME4J 0.8.13. Thank you for the update!

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.

@rafaeltonholo rafaeltonholo added the merge block: soft freeze PR to main is blocked: risky code or feature flag enablement must wait until soft freeze lifts. label Nov 7, 2025
@wmontwe wmontwe removed the merge block: soft freeze PR to main is blocked: risky code or feature flag enablement must wait until soft freeze lifts. label Nov 14, 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.

3 participants