fix biff notification when using global inbox and no junk filters applied, sr=mscott 260076

This commit is contained in:
bienvenu%nventure.com 2004-11-15 19:52:08 +00:00
Родитель 4c66785959
Коммит 04010c9793
1 изменённых файлов: 12 добавлений и 3 удалений

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

@ -373,14 +373,23 @@ nsPop3Sink::EndMailDelivery(nsIPop3Protocol *protocol)
m_numNewMessages -= (m_numNewMessagesInFolder - numNewMessagesInFolder);
m_folder->SetNumNewMessages(m_numNewMessages); // we'll adjust this for spam later
if (!filtersRun && m_numNewMessages > 0)
m_folder->SetBiffState(m_biffState);
{
nsCOMPtr <nsIMsgIncomingServer> server;
m_folder->GetServer(getter_AddRefs(server));
if (server)
{
server->SetPerformingBiff(PR_TRUE);
m_folder->SetBiffState(m_biffState);
server->SetPerformingBiff(PR_FALSE);
}
}
// note that size on disk has possibly changed.
nsCOMPtr<nsIMsgLocalMailFolder> localFolder = do_QueryInterface(m_folder);
if (localFolder)
(void) localFolder->RefreshSizeOnDisk();
nsCOMPtr<nsIMsgIncomingServer> server = do_QueryInterface(m_popServer);
if (server) {
if (server)
{
nsCOMPtr <nsIMsgFilterList> filterList;
rv = server->GetFilterList(nsnull, getter_AddRefs(filterList));
NS_ENSURE_SUCCESS(rv,rv);