From 75cdbd860e6cc089134b6b911bb24a5e97ab25b9 Mon Sep 17 00:00:00 2001 From: cketti Date: Thu, 1 Dec 2011 05:58:44 +0100 Subject: [PATCH] Only save IMAP path prefix in store URI if auto-detection isn't used --- src/com/fsck/k9/mail/store/ImapStore.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/fsck/k9/mail/store/ImapStore.java b/src/com/fsck/k9/mail/store/ImapStore.java index 6eb71b29f..82b858101 100644 --- a/src/com/fsck/k9/mail/store/ImapStore.java +++ b/src/com/fsck/k9/mail/store/ImapStore.java @@ -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 {