From d873ecbe7ac1d6e531ec302e6899b3b6cd48290d Mon Sep 17 00:00:00 2001 From: Daniel Applebaum Date: Thu, 20 May 2010 04:13:49 +0000 Subject: [PATCH] From cketti's reminder: check untagged response with equalsIgnoreCase. Also, reset mCombinedPrefix when the delimeter is discovered. --- src/com/fsck/k9/mail/store/ImapStore.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/fsck/k9/mail/store/ImapStore.java b/src/com/fsck/k9/mail/store/ImapStore.java index 40db86a04..2e4d73476 100644 --- a/src/com/fsck/k9/mail/store/ImapStore.java +++ b/src/com/fsck/k9/mail/store/ImapStore.java @@ -2292,9 +2292,10 @@ public class ImapStore extends Store executeSimpleCommand(String.format("LIST \"\" \"\"")); for (ImapResponse response : nameResponses) { - if (response.get(0).equals("LIST")) + if (ImapResponseParser.equalsIgnoreCase(response.get(0), "LIST")) { mPathDelimeter = response.getString(2); + mCombinedPrefix = null; if (K9.DEBUG) Log.d(K9.LOG_TAG, "Got path delimeter '" + mPathDelimeter + "' for " + getLogId()); }