This discussion is archived
1 Reply Latest reply: Dec 3, 2013 1:45 PM by bshannon RSS

Response readAtomString() parses incorrectly

17069b6f-e93e-44ee-953d-bf633754ac28 Newbie
Currently Being Moderated

RFC3501 defines an atom string as

 

astring = 1*ASTRING-CHAR / string

ASTRING-CHAR = ATOM-CHAR / resp-specials

resp-specials = "]"

 

Javax mail 1.5.1 changed its implementation of Response.readAtom(char) to ignore ']' (Response.class:225). readAtom(char) gets called during a call to readAtomString().

 

As a result, when parsing a message like "[CLIENTBUG]...", the atom returned is now "[CLIENTBUG", whereas it returned "[CLIENTBUG]" previously. Can this be addressed?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points