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:
bienvenu%netscape.com 2003-06-15 18:21:13 +00:00
Родитель af97ec5d9c
Коммит 5cca86fb50
1 изменённых файлов: 10 добавлений и 4 удалений

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

@ -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);
}
}
}
}