Ticket #161 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

StringIndexOutOfBoundsException when parsing malformed message headers

Reported by: octo Owned by: octo
Priority: minor Milestone: 1.1
Component: LogicMail Version: 1.1
Keywords: Cc: kdrescher@…
Blocked By: Blocking:

Description

Note: This problem can only occur with POP, since IMAP parses headers server-side.

When parsing a message that is malformed, so that the blank line between the headers and the body is missing, the above-mentioned exception is thrown.

The actual issue is that StringParser.parseMailHeaders() is not tolerant of cases where a seemingly-normal header line does not contain a ":" and a " ".

Change History

comment:1 Changed 2 years ago by octo

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.