From 3052e5b998dd6b40647e94ee568a379070b3b042 Mon Sep 17 00:00:00 2001 From: laurent-richard Date: Thu, 16 Jul 2020 10:32:10 +0200 Subject: [PATCH] Fix message flag assignment with FLAG_MODE_SET --- src/vmime/net/imap/IMAPFolder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmime/net/imap/IMAPFolder.cpp b/src/vmime/net/imap/IMAPFolder.cpp index 751c84dc..98bc05d8 100644 --- a/src/vmime/net/imap/IMAPFolder.cpp +++ b/src/vmime/net/imap/IMAPFolder.cpp @@ -1061,7 +1061,7 @@ void IMAPFolder::setMessageFlags( const std::vector 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);