I use Javamail 1.4.1 in order to read messages from a server.
When I get the message I execute message.getRecipients(xpRec) in order to get recipients but sometime I get an error
javax.mail.internet.AddressException: Illegal semicolon, not in group in string.
I can't controll the message format because are received mails.
How can I solve that issue ?
Is there a way to force to accept such adresses.
I tried with
before getting the session but nothing changed.
Significant improvements were made in JavaMail 1.4.2 to accept more illegal addresses when strict is false.
Try upgrading to the current version, JavaMail 1.4.5.
If that doesn't help, post the raw address headers that cause this problem.