зеркало из https://github.com/mozilla/pjs.git
fix 186894 folders other than imap inbox aren't checked for new mail at startup, r/sr=mscott
This commit is contained in:
Родитель
25c1d49d3a
Коммит
9ced87198b
|
@ -879,9 +879,8 @@ function loadStartFolder(initialUri)
|
|||
// only do this on startup, when we pass in null
|
||||
if (!initialUri && isLoginAtStartUpEnabled && gLoadStartFolder)
|
||||
{
|
||||
// Perform biff on the server to check for new mail, except for imap
|
||||
if (defaultServer.type != "imap")
|
||||
defaultServer.PerformBiff(msgWindow);
|
||||
// Perform biff on the server to check for new mail
|
||||
defaultServer.PerformBiff(msgWindow);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -757,16 +757,15 @@ function loadStartFolder(initialUri)
|
|||
}
|
||||
|
||||
var startFolder = startFolderResource.QueryInterface(Components.interfaces.nsIMsgFolder);
|
||||
SelectFolder(startFolder.URI);
|
||||
|
||||
// only do this on startup, when we pass in null
|
||||
if (!initialUri && isLoginAtStartUpEnabled && gLoadStartFolder)
|
||||
{
|
||||
// Perform biff on the server to check for new mail, except for imap
|
||||
if (defaultServer.type != "imap")
|
||||
// Perform biff on the server to check for new mail
|
||||
defaultServer.PerformBiff(msgWindow);
|
||||
}
|
||||
|
||||
SelectFolder(startFolder.URI);
|
||||
|
||||
// because the "open" state persists, we'll call
|
||||
// PerformExpand() for all servers that are open at startup.
|
||||
|
|
|
@ -727,6 +727,7 @@ nsImapMailFolder::UpdateFolder(nsIMsgWindow *msgWindow)
|
|||
getter_AddRefs(eventQ));
|
||||
nsCOMPtr <nsIURI> url;
|
||||
rv = imapService->SelectFolder(eventQ, this, m_urlListener, msgWindow, getter_AddRefs(url));
|
||||
m_urlRunning = PR_TRUE;
|
||||
if (url)
|
||||
{
|
||||
nsCOMPtr <nsIMsgMailNewsUrl> mailnewsUrl = do_QueryInterface(url);
|
||||
|
|
Загрузка…
Ссылка в новой задаче