зеркало из https://github.com/mozilla/gecko-dev.git
fix 245769 and 239181, don't use IMAP status on selected state folder, sr=mscott
This commit is contained in:
Родитель
091f41e422
Коммит
61412032bd
|
@ -5632,6 +5632,18 @@ PRBool nsImapProtocol::FolderIsSelected(const char *mailboxName)
|
|||
|
||||
void nsImapProtocol::OnStatusForFolder(const char *mailboxName)
|
||||
{
|
||||
|
||||
if (FolderIsSelected(mailboxName))
|
||||
{
|
||||
PRInt32 prevNumMessages = GetServerStateParser().NumberOfMessages();
|
||||
Noop();
|
||||
// OnNewIdleMessages will cause the ui thread to update the folder
|
||||
if (m_imapMailFolderSink && GetServerStateParser().NumberOfRecentMessages()
|
||||
|| prevNumMessages != GetServerStateParser().NumberOfMessages())
|
||||
m_imapMailFolderSink->OnNewIdleMessages();
|
||||
return;
|
||||
}
|
||||
|
||||
IncrementCommandTagNumber();
|
||||
|
||||
nsCAutoString command(GetServerCommandTag());
|
||||
|
|
|
@ -183,6 +183,7 @@ void nsImapServerResponseParser::InitializeState()
|
|||
{
|
||||
fProcessingTaggedResponse = PR_FALSE;
|
||||
fCurrentCommandFailed = PR_FALSE;
|
||||
fNumberOfRecentMessages = 0;
|
||||
}
|
||||
|
||||
void nsImapServerResponseParser::ParseIMAPServerResponse(const char *currentCommand, PRBool aIgnoreBadAndNOResponses)
|
||||
|
|
Загрузка…
Ссылка в новой задаче