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:
parent
f729dd72dc
commit
75cdbd860e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user