Recognize deleted messages not yet expunged (thanks to Benjamin Biron).
This commit is contained in:
parent
6bd21074a3
commit
c884bc382c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user