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

Add support for new auto-detect namespace setting to ImapStore

This commit is contained in:
cketti 2011-12-01 06:30:47 +01:00
parent 017033cd53
commit 63605b65b6

View File

@ -226,8 +226,8 @@ public class ImapStore extends Store {
pathPrefix = cleanPath.substring(2);
}
} else {
pathPrefix = cleanPath;
if (pathPrefix.length() > 0) {
if (cleanPath.length() > 0) {
pathPrefix = cleanPath;
autoDetectNamespace = false;
}
}
@ -479,7 +479,8 @@ public class ImapStore extends Store {
mUsername = settings.username;
mPassword = settings.password;
mPathPrefix = settings.pathPrefix;
// Make extra sure mPathPrefix is null if "auto-detect namespace" is configured
mPathPrefix = (settings.autoDetectNamespace) ? null : settings.pathPrefix;
mModifiedUtf7Charset = new CharsetProvider().charsetForName("X-RFC-3501");
}