fixed bug 41170 - opening the twisty for an imap server should refresh the folder list; r=sspitzer, bienvenu

This commit is contained in:
jefft%netscape.com 2000-06-13 23:18:04 +00:00
parent 94bf01f465
commit e4d6f47b1c

View File

@ -635,7 +635,18 @@ NS_IMETHODIMP nsImapIncomingServer::ResetConnection(const char* folderName)
NS_IMETHODIMP
nsImapIncomingServer::PerformExpand(nsIMsgWindow *aMsgWindow)
{
nsresult rv;
nsXPIDLCString password;
nsresult rv;
rv = GetPassword(getter_Copies(password));
if (NS_FAILED(rv)) return rv;
if (!(const char*) password ||
nsCRT::strlen((const char*) password) == 0)
return NS_OK;
rv = ResetFoldersToUnverified(nsnull);
nsCOMPtr<nsIFolder> rootFolder;
rv = GetRootFolder(getter_AddRefs(rootFolder));
if (NS_FAILED(rv)) return rv;
@ -2208,7 +2219,6 @@ nsImapIncomingServer::GetDoingLsub(PRBool *doingLsub)
NS_IMETHODIMP
nsImapIncomingServer::ReDiscoverAllFolders()
{
nsresult rv = ResetFoldersToUnverified(nsnull);
rv = PerformExpand(nsnull);
nsresult rv = PerformExpand(nsnull);
return rv;
}