Recognize deleted messages not yet expunged (thanks to Benjamin Biron).

This commit is contained in:
Vincent Richard 2006-01-08 21:14:04 +00:00
parent 6bd21074a3
commit c884bc382c

View File

@ -352,6 +352,10 @@ void maildirFolder::scanFolder()
// Append to message list
messageInfos msgInfos;
msgInfos.path = newFilename;
if (maildirUtils::extractFlags(msgInfos.path) & message::FLAG_DELETED)
msgInfos.type = messageInfos::TYPE_DELETED;
else
msgInfos.type = messageInfos::TYPE_CUR;
m_messageInfos.push_back(msgInfos);
@ -365,6 +369,10 @@ void maildirFolder::scanFolder()
// Append to message list
messageInfos msgInfos;
msgInfos.path = *it;
if (maildirUtils::extractFlags(msgInfos.path) & message::FLAG_DELETED)
msgInfos.type = messageInfos::TYPE_DELETED;
else
msgInfos.type = messageInfos::TYPE_CUR;
m_messageInfos.push_back(msgInfos);