fix 186894 folders other than imap inbox aren't checked for new mail at startup, r/sr=mscott

This commit is contained in:
bienvenu%nventure.com 2004-05-04 18:32:25 +00:00
Родитель 25c1d49d3a
Коммит 9ced87198b
3 изменённых файлов: 5 добавлений и 6 удалений

Просмотреть файл

@ -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);