summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/messageservices/imap/imapstrategy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/messageservices/imap/imapstrategy.cpp b/src/plugins/messageservices/imap/imapstrategy.cpp
index aa05258a..3a82a2df 100644
--- a/src/plugins/messageservices/imap/imapstrategy.cpp
+++ b/src/plugins/messageservices/imap/imapstrategy.cpp
@@ -3910,7 +3910,7 @@ void ImapRetrieveMessageListStrategy::qresyncFolderListFolderAction(ImapStrategy
// Always set the highestmodseq for the folder
{
processFlagChanges(properties.flagChanges, properties.id, &_error);
- folder.setCustomField("qmf-highestmodseq", properties.highestModSeq);
+ folder.setCustomField("qmf-highestmodseq", properties.highestModSeq.isEmpty() ? QLatin1String("0") : properties.highestModSeq);
if (!QMailStore::instance()->updateFolder(&folder)) {
_error = true;
qWarning() << "Unable to update folder HIGHESTMODSEQ for account:" << context->config().id();