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:
parent
1ab75f11f1
commit
99163dc9b9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user