1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -05:00

From cketti's reminder: check untagged response with equalsIgnoreCase.

Also, reset mCombinedPrefix when the delimeter is discovered.
This commit is contained in:
Daniel Applebaum 2010-05-20 04:13:49 +00:00
parent af55c6f48b
commit d873ecbe7a

View File

@ -2292,9 +2292,10 @@ public class ImapStore extends Store
executeSimpleCommand(String.format("LIST \"\" \"\"")); executeSimpleCommand(String.format("LIST \"\" \"\""));
for (ImapResponse response : nameResponses) for (ImapResponse response : nameResponses)
{ {
if (response.get(0).equals("LIST")) if (ImapResponseParser.equalsIgnoreCase(response.get(0), "LIST"))
{ {
mPathDelimeter = response.getString(2); mPathDelimeter = response.getString(2);
mCombinedPrefix = null;
if (K9.DEBUG) if (K9.DEBUG)
Log.d(K9.LOG_TAG, "Got path delimeter '" + mPathDelimeter + "' for " + getLogId()); Log.d(K9.LOG_TAG, "Got path delimeter '" + mPathDelimeter + "' for " + getLogId());
} }