1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-10 11:35:11 -05:00

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.
This commit is contained in:
cketti 2011-11-16 04:48:50 +01:00
parent 1ab75f11f1
commit 99163dc9b9

View File

@ -77,9 +77,6 @@ public class ImapResponseParser {
while ((token = readToken(response)) != null) { while ((token = readToken(response)) != null) {
if (!(token instanceof ImapList)) { if (!(token instanceof ImapList)) {
response.add(token); response.add(token);
if (isSizeOrExpungeResponse((String) token)) {
break;
}
} }
} }
} }
@ -546,12 +543,6 @@ public class ImapResponseParser {
symbol.equalsIgnoreCase("BYE"); 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) { public static boolean equalsIgnoreCase(Object o1, Object o2) {
if (o1 != null && o2 != null && o1 instanceof String && o2 instanceof String) { if (o1 != null && o2 != null && o1 instanceof String && o2 instanceof String) {
String s1 = (String)o1; String s1 = (String)o1;