fix regression downloading pop3 mail on startup introduced by fixing js warning, 270343, sr=mscott

This commit is contained in:
bienvenu%nventure.com 2005-02-08 18:26:09 +00:00
Родитель 63402725b3
Коммит e78c5b40a6
2 изменённых файлов: 13 добавлений и 31 удалений

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

@ -777,23 +777,14 @@ 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 (defaultServer && defaultServer.equals(currentServer) &&
!defaultServer.isDeferredTo &&
defaultServer.rootFolder == defaultServer.rootMsgFolder)
{
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);
}
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);
}
}
for (var i = 0; i < pop3DownloadServersArray.length; i++)

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

@ -746,23 +746,14 @@ 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 (defaultServer && defaultServer.equals(currentServer) &&
!defaultServer.isDeferredTo &&
defaultServer.rootFolder == defaultServer.rootMsgFolder)
if (currentServer.type == "pop3" && currentServer.downloadOnBiff)
{
dump(currentServer.serverURI + "...skipping, already opened\n");
CoalesceGetMsgsForPop3ServersByDestFolder(currentServer, pop3DownloadServersArray, localFoldersToDownloadTo);
pop3Server = currentServer.QueryInterface(Components.interfaces.nsIPop3IncomingServer);
}
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)