mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -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);
|
pathPrefix = cleanPath.substring(2);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (cleanPath.length() > 0) {
|
||||||
pathPrefix = cleanPath;
|
pathPrefix = cleanPath;
|
||||||
if (pathPrefix.length() > 0) {
|
|
||||||
autoDetectNamespace = false;
|
autoDetectNamespace = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -479,7 +479,8 @@ public class ImapStore extends Store {
|
|||||||
mUsername = settings.username;
|
mUsername = settings.username;
|
||||||
mPassword = settings.password;
|
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");
|
mModifiedUtf7Charset = new CharsetProvider().charsetForName("X-RFC-3501");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user