Describe the bug
Jakarta Mail throws an unchecked IndexOutOfBoundsException when parsing certain malformed MIME headers. The exception originates in javax.mail.internet.InternetHeaders.addHeaderLine() and is reachable through standard message parsing APIs (MimeMessage.parse).
Describe the bug
Jakarta Mail throws an unchecked IndexOutOfBoundsException when parsing certain malformed MIME headers. The exception originates in javax.mail.internet.InternetHeaders.addHeaderLine() and is reachable through standard message parsing APIs (MimeMessage.parse).