classpathx-javamail
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Classpathx-javamail] Bug in MBOX classpathx


From: Countach
Subject: [Classpathx-javamail] Bug in MBOX classpathx
Date: Thu, 17 Feb 2005 16:39:35 +1100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Hi,

There is a bug in the MBOX reader such that it blows up if the Date header has a trailing space and you call Message.getSentDate().

The problem is in MailDateFormat.parse....

      if (end != len)
         {
           // Timezone
           start = skipWhitespace(text, end + 1);
           end = start + 1;

If it gets to this point it assumes I guess that there must be a timezone if there is trailing whitespace. So it calls skipWhitespace, the trouble is skipWhitespace doesn't check for end of String, it keeps calling charAt(pos) until it runs off the end of the String.

Is there someone more familiar with the code who would care to fix this?






reply via email to

[Prev in Thread] Current Thread [Next in Thread]