mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Add support for new auto-detect namespace setting to ImapStore
This commit is contained in:
parent
017033cd53
commit
63605b65b6
@ -226,8 +226,8 @@ public class ImapStore extends Store {
|
||||
pathPrefix = cleanPath.substring(2);
|
||||
}
|
||||
} else {
|
||||
if (cleanPath.length() > 0) {
|
||||
pathPrefix = cleanPath;
|
||||
if (pathPrefix.length() > 0) {
|
||||
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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user