Fixed notification when adding message to IMAP folder.

This commit is contained in:
Vincent Richard 2004-12-21 10:19:22 +00:00
parent 706c270073
commit bf2c777691

View File

@ -1154,6 +1154,19 @@ void IMAPFolder::addMessage(utility::inputStream& is, const int size, const int
m_messageCount++;
notifyMessageCount(event);
// Notify folders with the same path
for (std::list <IMAPFolder*>::iterator it = m_store->m_folders.begin() ;
it != m_store->m_folders.end() ; ++it)
{
if ((*it) != this && (*it)->getFullPath() == m_path)
{
events::messageCountEvent event(*it, events::messageCountEvent::TYPE_ADDED, nums);
(*it)->m_messageCount++;
(*it)->notifyMessageCount(event);
}
}
}