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,7 +352,11 @@ void maildirFolder::scanFolder()
// Append to message list
messageInfos msgInfos;
msgInfos.path = newFilename;
msgInfos.type = messageInfos::TYPE_CUR;
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,7 +369,11 @@ void maildirFolder::scanFolder()
// Append to message list
messageInfos msgInfos;
msgInfos.path = *it;
msgInfos.type = messageInfos::TYPE_CUR;
if (maildirUtils::extractFlags(msgInfos.path) & message::FLAG_DELETED)
msgInfos.type = messageInfos::TYPE_DELETED;
else
msgInfos.type = messageInfos::TYPE_CUR;
m_messageInfos.push_back(msgInfos);
}