From 8cf2655dd889df03558cea637dc377aa4f725df0 Mon Sep 17 00:00:00 2001 From: cketti Date: Thu, 9 Sep 2010 23:52:06 +0000 Subject: [PATCH] Reverted r2332 and r2333 because the cause of the problem reported in issue 2078 seems to be different than initially thought. --- src/com/fsck/k9/mail/store/ImapStore.java | 25 +---------------------- 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/src/com/fsck/k9/mail/store/ImapStore.java b/src/com/fsck/k9/mail/store/ImapStore.java index 418fcb8a0..3b223240e 100644 --- a/src/com/fsck/k9/mail/store/ImapStore.java +++ b/src/com/fsck/k9/mail/store/ImapStore.java @@ -928,30 +928,7 @@ public class ImapStore extends Store { if (ImapResponseParser.equalsIgnoreCase(response.get(0), "SEARCH")) { - /* - * At least one server software decided it'd be a nice challenge for - * client implementations to return a message sequence number of 0 when - * no matches were found. So we're doing some sanity checks on the - * returned values before adding them to our message count. - * - * See issue 2078 - */ - boolean invalidResponse = false; - for (int i = 1, length = response.size(); i < length; i++) - { - if ("0".equals(response.get(i))) - { - invalidResponse = true; - } - else - { - count++; - } - } - if (K9.DEBUG && invalidResponse) - { - Log.d(K9.LOG_TAG, "Invalid value found in SEARCH response."); - } + count += response.size() - 1; } } return count;