diff options
author | Vincent Richard <[email protected]> | 2020-07-17 21:42:13 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-17 21:42:13 +0000 |
commit | 0f9938764866b58df7f5fae42bcab7076c53669a (patch) | |
tree | d4f8813d19e3f2ed31bf562a1df5645fd09bdc03 | |
parent | #238 Fixed whitespace between encoded words (diff) | |
parent | Fix message flag assignment with FLAG_MODE_SET (diff) | |
download | vmime-0f9938764866b58df7f5fae42bcab7076c53669a.tar.gz vmime-0f9938764866b58df7f5fae42bcab7076c53669a.zip |
Merge pull request #239 from kisli/laurent-richard-fix-message-flag-set
Fix message flag assignment with FLAG_MODE_SET.
-rw-r--r-- | src/vmime/net/imap/IMAPFolder.cpp | 2 |
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); |