IMAP: fix date parsing error, see bug 2878289

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@876 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-12-07 23:58:38 +00:00
parent 565f037df2
commit b0febb5b76
1 changed files with 1 additions and 1 deletions

View File

@ -1414,7 +1414,7 @@ public class ImapConnection extends AbstractConnection {
StringBuilder nextToken = new StringBuilder();
nextToken.append(super.nextToken());
while (hasMoreTokens() && nextToken.length() > 0 && nextToken.charAt(0) == '"'
&& nextToken.charAt(nextToken.length() - 1) != '"') {
&& (nextToken.charAt(nextToken.length() - 1) != '"' || nextToken.length() == 1)) {
nextToken.append(' ').append(super.nextToken());
}
while (hasMoreTokens() && nextToken.length() > 0 && nextToken.charAt(0) == '('