From 772ce164b46b2d09886a4e7a5d9c67b438329314 Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Sun, 11 Apr 2004 15:11:54 +0000 Subject: [PATCH] fix disappearing imap namespaces when you have an online server directory set by not listing namespaces, 239868 sr=mscott, a=asa git-svn-id: svn://10.0.0.236/trunk@154687 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/imap/src/nsImapIncomingServer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/mailnews/imap/src/nsImapIncomingServer.cpp b/mozilla/mailnews/imap/src/nsImapIncomingServer.cpp index 2059458cd5c..97473efc70d 100644 --- a/mozilla/mailnews/imap/src/nsImapIncomingServer.cpp +++ b/mozilla/mailnews/imap/src/nsImapIncomingServer.cpp @@ -1791,6 +1791,10 @@ NS_IMETHODIMP nsImapIncomingServer::DiscoveryDone() ((NS_SUCCEEDED(currentFolder->GetHasSubFolders(&hasSubFolders)) && hasSubFolders) && !NoDescendentsAreVerified(currentFolder))) { + PRBool isNamespace; + currentImapFolder->GetIsNamespace(&isNamespace); + if (!isNamespace) // don't list namespaces explicitly + { // If there are no subfolders and this is unverified, we don't want to run // this url. That is, we want to undiscover the folder. // If there are subfolders and no descendants are verified, we want to @@ -1800,6 +1804,7 @@ NS_IMETHODIMP nsImapIncomingServer::DiscoveryDone() currentImapFolder->SetExplicitlyVerify(PR_FALSE); currentImapFolder->List(); } + } else { DeleteNonVerifiedFolders(currentFolder);