fix downloading partial pop3 messages for offline when they've been filtered into other folders, sr=mscott 259649

This commit is contained in:
bienvenu%nventure.com 2004-09-15 23:04:39 +00:00
Родитель 41482262ba
Коммит b7f45f449c
1 изменённых файлов: 10 добавлений и 1 удалений

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

@ -3108,7 +3108,16 @@ NS_IMETHODIMP nsMsgLocalMailFolder::DownloadMessagesForOffline(
}
mDownloadWindow = aWindow;
return GetNewMessages(aWindow, this);
nsCOMPtr<nsIMsgIncomingServer> server;
nsresult rv = GetServer(getter_AddRefs(server));
if (NS_FAILED(rv)) return rv;
if (!server) return NS_MSG_INVALID_OR_MISSING_SERVER;
nsCOMPtr<nsILocalMailIncomingServer> localMailServer = do_QueryInterface(server);
if (!localMailServer)
return NS_MSG_INVALID_OR_MISSING_SERVER;
return localMailServer->GetNewMail(aWindow, this, this, nsnull);
}
// TODO: once we move certain code into the IncomingServer (search for TODO)