mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
fixed bug 41170 - opening the twisty for an imap server should refresh the folder list; r=sspitzer, bienvenu
This commit is contained in:
parent
94bf01f465
commit
e4d6f47b1c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user