зеркало из https://github.com/mozilla/gecko-dev.git
fix downloading partial pop3 messages for offline when they've been filtered into other folders, sr=mscott 259649
This commit is contained in:
Родитель
41482262ba
Коммит
b7f45f449c
|
@ -3108,7 +3108,16 @@ NS_IMETHODIMP nsMsgLocalMailFolder::DownloadMessagesForOffline(
|
||||||
}
|
}
|
||||||
mDownloadWindow = aWindow;
|
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)
|
// TODO: once we move certain code into the IncomingServer (search for TODO)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче