1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04: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) {
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;