Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

mailfetcherservice AddressException Illegal semicolon

Luca Andreatta
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 8, 2019

I have some email that are rejected from mailfetcherservice because the addresses are separated with semicolon. As from RFC 6068 addreses should be separated using comma, but Microsoft Outlook could use semicolon if not specified otherwise.

Is there any solution to this issue?

1 answer

0 votes
Luca Andreatta
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 9, 2019

Just to add some more details.

The problem is due to mail.jar, a jar that comes from JVM itself, and in particular to InternetAddress.parse(InternetAddress.java:1043). Funny to note the comment before this method refers to it as an "ad-hoc mess".

The only solution that I see is to not rely on javax.mail.Message and use something else in MailUtils.hasRecipient(MailUtils.java:398) : Address[] addresses = message.getAllRecipients();

Or to change the recipents list to use the standard comma separator before using it.

<sarcastic>Anyway thank you Microsoft to not adhere to standards!</sarcastic>

Gonchik Tsymzhitov
Community Champion
January 17, 2019

I can say also, thanks for that Microsoft :)

Like Luca Andreatta likes this
Luca Andreatta
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 7, 2019

Anyone interested in this issue can vote for this request:

 

Thanks!

Suggest an answer

Log in or Sign up to answer