Inverted flags and mode in deleteMessage[s]() (thanks to Benjamin Biron).

This commit is contained in:
Vincent Richard 2006-01-07 08:52:57 +00:00
parent 9dcc78085a
commit 07a3a8eb71

View File

@ -618,21 +618,21 @@ void maildirFolder::rename(const folder::path& newPath)
void maildirFolder::deleteMessage(const int num)
{
// Mark messages as deleted
setMessageFlags(num, num, message::FLAG_MODE_ADD, message::FLAG_DELETED);
setMessageFlags(num, num, message::FLAG_DELETED, message::FLAG_MODE_ADD);
}
void maildirFolder::deleteMessages(const int from, const int to)
{
// Mark messages as deleted
setMessageFlags(from, to, message::FLAG_MODE_ADD, message::FLAG_DELETED);
setMessageFlags(from, to, message::FLAG_DELETED, message::FLAG_MODE_ADD);
}
void maildirFolder::deleteMessages(const std::vector <int>& nums)
{
// Mark messages as deleted
setMessageFlags(nums, message::FLAG_MODE_ADD, message::FLAG_DELETED);
setMessageFlags(nums, message::FLAG_DELETED, message::FLAG_MODE_ADD);
}