Ticket #161 (closed Bugs: fixed)
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
Note: See
TracTickets for help on using
tickets.
