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

Only save IMAP path prefix in store URI if auto-detection isn't used

This commit is contained in:
cketti 2011-12-01 05:58:44 +01:00
parent f729dd72dc
commit 75cdbd860e

View File

@ -295,7 +295,8 @@ public class ImapStore extends Store {
if (extra != null) {
boolean autoDetectNamespace = Boolean.TRUE.toString().equals(
extra.get(ImapStoreSettings.AUTODETECT_NAMESPACE_KEY));
String pathPrefix = extra.get(ImapStoreSettings.PATH_PREFIX_KEY);
String pathPrefix = (autoDetectNamespace) ?
null : extra.get(ImapStoreSettings.PATH_PREFIX_KEY);
path = "/" + (autoDetectNamespace ? "1" : "0") + "|" +
((pathPrefix == null) ? "" : pathPrefix);
} else {