From 99163dc9b949a303a76de9cc438ceab5b368fbca Mon Sep 17 00:00:00 2001 From: cketti Date: Wed, 16 Nov 2011 04:48:50 +0100 Subject: [PATCH] Removed isSizeOrExpungeResponse() I don't understand what the purpose of this code was. It stopped parsing before the end of the line was reached, thus causing problems with parsing subsequent lines of the response. --- src/com/fsck/k9/mail/store/ImapResponseParser.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/com/fsck/k9/mail/store/ImapResponseParser.java b/src/com/fsck/k9/mail/store/ImapResponseParser.java index b38f779cf..e0853522e 100644 --- a/src/com/fsck/k9/mail/store/ImapResponseParser.java +++ b/src/com/fsck/k9/mail/store/ImapResponseParser.java @@ -77,9 +77,6 @@ public class ImapResponseParser { while ((token = readToken(response)) != null) { if (!(token instanceof ImapList)) { response.add(token); - if (isSizeOrExpungeResponse((String) token)) { - break; - } } } } @@ -546,12 +543,6 @@ public class ImapResponseParser { symbol.equalsIgnoreCase("BYE"); } - public boolean isSizeOrExpungeResponse(String symbol) { - return symbol.equalsIgnoreCase("EXISTS") || - symbol.equalsIgnoreCase("RECENT") || - symbol.equalsIgnoreCase("EXPUNGE"); - } - public static boolean equalsIgnoreCase(Object o1, Object o2) { if (o1 != null && o2 != null && o1 instanceof String && o2 instanceof String) { String s1 = (String)o1;