summaryrefslogtreecommitdiff
path: root/mailnews
diff options
context:
space:
mode:
Diffstat (limited to 'mailnews')
-rw-r--r--mailnews/imap/src/nsImapService.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailnews/imap/src/nsImapService.cpp b/mailnews/imap/src/nsImapService.cpp
index 1d97dec29d..60af2084a8 100644
--- a/mailnews/imap/src/nsImapService.cpp
+++ b/mailnews/imap/src/nsImapService.cpp
@@ -2734,7 +2734,7 @@ NS_IMETHODIMP nsImapService::NewChannel2(nsIURI *aURI,
nsCString fullFolderName;
if (parent)
fullFolderName = folderName;
- if (!parent && !folderName.IsEmpty()) // check if this folder is another user's folder
+ if (!parent && !folderName.IsEmpty() && imapRoot) // Check if this folder is another user's folder.
{
fullFolderName = nsIMAPNamespaceList::GenerateFullFolderNameWithDefaultNamespace(serverKey.get(),
folderName.get(),