Bug #329552 --> alert notifications dialog is called in scenarios where we don't have new message and in scenarios where the folder doesn't realize it has new folders. Patch by bienvenu and mscott sr=bienvenu

This commit is contained in:
scott%scott-macgregor.org 2006-03-07 06:12:38 +00:00
parent 68fd2fbdfe
commit f96a4487e1

View File

@ -2776,6 +2776,7 @@ NS_IMETHODIMP nsImapMailFolder::UpdateImapMailboxInfo(
GetGettingNewMessages(&gettingNewMessages);
if (gettingNewMessages)
ProgressStatus(aProtocol,IMAP_NO_NEW_MESSAGES, nsnull);
SetPerformingBiff(PR_FALSE);
}
}
@ -5361,6 +5362,9 @@ nsImapMailFolder::HeaderFetchCompleted(nsIImapProtocol* aProtocol)
if (!filtersRun && m_performingBiff && mDatabase && numNewBiffMsgs > 0 &&
(!pendingMoves || !ShowPreviewText()))
{
if (!pendingMoves)
SetHasNewMessages(PR_TRUE);
// If we are performing biff for this folder, tell the
// stand-alone biff about the new high water mark
// We must ensure that the server knows that we are performing biff.