Merge pull request #239 from kisli/laurent-richard-fix-message-flag-set

Fix message flag assignment with FLAG_MODE_SET.
This commit is contained in:
Vincent Richard 2020-07-17 23:42:13 +02:00 committed by GitHub
commit 0f99387648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1061,7 +1061,7 @@ void IMAPFolder::setMessageFlags(
const std::vector <string> flagList = IMAPUtils::messageFlagList(flags);
if (!flagList.empty()) {
if ((mode == message::FLAG_MODE_SET) || !flagList.empty()) {
// Send the request
IMAPCommand::STORE(msgs, mode, flagList)->send(m_connection);