Bug 304176 Creating initial POP3 account in new profile always downloads messages even if download messages now option is unchecked r=mnyromyr sr=bienvenu

This commit is contained in:
neil%parkwaycc.co.uk 2005-08-28 22:24:28 +00:00
Родитель 302aa9cd45
Коммит 283dfd00e6
2 изменённых файлов: 14 добавлений и 6 удалений

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

@ -747,14 +747,22 @@ function MsgGetMessagesForAllServers(defaultServer)
var protocolinfo = Components.classes["@mozilla.org/messenger/protocol/info;1?type=" + currentServer.type].getService(Components.interfaces.nsIMsgProtocolInfo);
if (protocolinfo.canLoginAtStartUp && currentServer.loginAtStartUp)
{
if (currentServer.type == "pop3" && currentServer.downloadOnBiff)
if (defaultServer && defaultServer.equals(currentServer) &&
!defaultServer.isDeferredTo &&
defaultServer.rootFolder == defaultServer.rootMsgFolder)
{
CoalesceGetMsgsForPop3ServersByDestFolder(currentServer, pop3DownloadServersArray, localFoldersToDownloadTo);
pop3Server = currentServer.QueryInterface(Components.interfaces.nsIPop3IncomingServer);
dump(currentServer.serverURI + "...skipping, already opened\n");
}
else if (currentServer.type == "pop3" && currentServer.downloadOnBiff)
{
CoalesceGetMsgsForPop3ServersByDestFolder(currentServer, pop3DownloadServersArray, localFoldersToDownloadTo);
pop3Server = currentServer.QueryInterface(Components.interfaces.nsIPop3IncomingServer);
}
else
// Check to see if there are new messages on the server
currentServer.PerformBiff(msgWindow);
{
// Check to see if there are new messages on the server
currentServer.PerformBiff(msgWindow);
}
}
}
for (i = 0; i < pop3DownloadServersArray.length; ++i)

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

@ -827,7 +827,7 @@ function loadStartFolder(initialUri)
// or the case where initialUri is non-null (non-startup)
if (!initialUri && isLoginAtStartUpEnabled && gLoadStartFolder
&& defaultServer.type != "imap" && !defaultServer.isDeferredTo &&
defaultServer.msgFolder == defaultServer.rootMsgFolder)
defaultServer.rootFolder == defaultServer.rootMsgFolder)
defaultServer.PerformBiff(msgWindow);
SelectFolder(startFolder.URI);