Skip to content

Fix RFC 2047 encoding for programmatically objects Problem#768

Open
chu3laman wants to merge 1 commit intojakartaee:masterfrom
chu3laman:bug/Parsing-of-mail-addresses-with-personal-name-not-correctly-encoded-
Open

Fix RFC 2047 encoding for programmatically objects Problem#768
chu3laman wants to merge 1 commit intojakartaee:masterfrom
chu3laman:bug/Parsing-of-mail-addresses-with-personal-name-not-correctly-encoded-

Conversation

@chu3laman
Copy link
Contributor

Description

InternedAddress created with non-ASCII characters doesn't properly encode the personal name.

Solution:

if (pers != null) { if(parseHdr) { ma.encodedPersonal = pers; }else { try { ma.setPersonal(pers); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } } }

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.

1 participant