Skip to content

Bugfix: encoded delimited recipients in EML not parsed properly #444

@fb-datax

Description

@fb-datax

Using the following two eml Lines, the recipients list contains 2 entries instead of 1:

From: =?iso-8859-1?Q?Some_Name=2C_Jane_Doe?= <[email protected]>
To: =?iso-8859-1?Q?Some_Name_2=2C_John_Doe?= <[email protected]>
Email email = EmailConverter.emlToEmail(eml);
System.out.println(email.getFromRecipient());
System.out.println(email.getRecipients());
Recipient{name='Some Name, Jane Doe', address='[email protected]', type=null}
Recipient{name='null', address='Some', type=To}, Recipient{name='John Doe', address='[email protected]', type=To}]

If the "," is removed the recipients are parsed correctly:

From: =?iso-8859-1?Q?Some_Name_Jane_Doe?= <[email protected]>
To: =?iso-8859-1?Q?Some_Name_2_John_Doe?= <[email protected]>
Recipient{name='Some Name Jane Doe', address='[email protected]', type=null}
[Recipient{name='Some Name 2 John Doe', address='[email protected]', type=To}]

Problem occurs using the latest version 7.8.3. Using the 6.x Version the problem doesn't occur and the recipients are parsed correctly.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions