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
1 changed files with 4 additions and 3 deletions

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");
}