Fix message flag assignment with FLAG_MODE_SET

This commit is contained in:
laurent-richard 2020-07-16 10:32:10 +02:00 committed by GitHub
parent 5c00f7867a
commit 3052e5b998
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);