[MGNLMAIL-96] Support UTF-8 in email addresses Created: 20/Sep/18  Updated: 17/Aug/23  Resolved: 17/Aug/23

Status: Closed
Project: Magnolia Mail Module
Component/s: Backend
Affects Version/s: 5.4.1, 5.5
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Viet Nguyen Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Release notes required:
Yes
Documentation update required:
Yes
Date of First Response:

 Description   

Our current mail libraries are not supporting UTF-8 in from / to addresses while subject field is still working.
JavaMail 1.6.0 changes log shown that it start supporting this function in section 9 - Support addressing i18n via RFC 6530/6531/6532
Let's consider upgrading our system to support this feature.
FYI: Our current java mail version is 1.5.6.



 Comments   
Comment by Viet Nguyen [ 20/Sep/18 ]

Grep code:
info.magnolia.module.mail.templates.MgnlEmail.setFrom(String)

public void setFrom(String _from) {
    try {
        this.setFrom(new InternetAddress(_from));
    } catch (Exception e) {
        log.error("Could not set from field of email:" + e.getMessage());
    }
}

Note that for current implementation of InternetAddress address means the address in RFC822 format.

Comment by Richard Gange [ 17/Aug/23 ]

Closing as obsolete since we use v1.6.5 in current versions of Magnolia.

Generated at Mon Feb 12 06:03:36 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.