diff options
| author | laurent-richard <[email protected]> | 2020-07-16 10:32:10 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-07-16 10:32:10 +0200 |
| commit | 3052e5b998dd6b40647e94ee568a379070b3b042 (patch) | |
| tree | d4f8813d19e3f2ed31bf562a1df5645fd09bdc03 /src | |
| parent | #238 Fixed whitespace between encoded words (diff) | |
| download | vmime-3052e5b998dd6b40647e94ee568a379070b3b042.tar.gz vmime-3052e5b998dd6b40647e94ee568a379070b3b042.zip | |
Fix message flag assignment with FLAG_MODE_SET
Diffstat (limited to 'src')
| -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); |
