Bug #270743 --> First launch account creation doesn't honor unchecking [ ] Download messages now option

Port some seamonkey changes to thunderbird to fix this issue.

Patch by Henrik Skupin <hskupin@gmail.com>
This commit is contained in:
scott%scott-macgregor.org 2005-09-14 03:05:59 +00:00
Родитель f889a99cbb
Коммит 691194fe1d
2 изменённых файлов: 17 добавлений и 9 удалений

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

@ -758,14 +758,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)
{
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 (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);
}
}
}
for (var i = 0; i < pop3DownloadServersArray.length; i++)

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

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