зеркало из https://github.com/mozilla/gecko-dev.git
fix problem where new news messages were getting marked read when pop3 get new mail ran r/sr=sspitzer, 206271
This commit is contained in:
Родитель
af97ec5d9c
Коммит
5cca86fb50
|
@ -274,10 +274,16 @@ nsPop3Sink::EndMailDelivery()
|
|||
(void) msgWindow->GetOpenFolder(getter_AddRefs(openFolder));
|
||||
if (openFolder && openFolder != m_folder)
|
||||
{
|
||||
PRBool hasNew;
|
||||
(void) openFolder->GetHasNewMessages(&hasNew);
|
||||
if (hasNew)
|
||||
openFolder->CallFilterPlugins(nsnull);
|
||||
// only call filter plugins if folder is a local folder, because only
|
||||
// local folders get messages filtered into them synchronously by pop3.
|
||||
nsCOMPtr<nsIMsgLocalMailFolder> localFolder = do_QueryInterface(openFolder);
|
||||
if (localFolder)
|
||||
{
|
||||
PRBool hasNew;
|
||||
(void) openFolder->GetHasNewMessages(&hasNew);
|
||||
if (hasNew)
|
||||
openFolder->CallFilterPlugins(nsnull);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче