aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlaurent-richard <[email protected]>2020-07-16 08:32:10 +0000
committerGitHub <[email protected]>2020-07-16 08:32:10 +0000
commit3052e5b998dd6b40647e94ee568a379070b3b042 (patch)
treed4f8813d19e3f2ed31bf562a1df5645fd09bdc03
parent#238 Fixed whitespace between encoded words (diff)
downloadvmime-3052e5b998dd6b40647e94ee568a379070b3b042.tar.gz
vmime-3052e5b998dd6b40647e94ee568a379070b3b042.zip
Fix message flag assignment with FLAG_MODE_SET
-rw-r--r--src/vmime/net/imap/IMAPFolder.cpp2
1 files changed, 1 insertions, 1 deletions
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 <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);