summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@viroteck.net>2016-01-03 04:32:02 +0100
committerPekka Vuorela <pvuorela@iki.fi>2018-09-11 13:19:56 +0000
commit80ac5a94dcf90b95d91ce76a8d899189a088b93a (patch)
tree7f290227142e31ef4d71fb439f596da3ba7d7eff
parentfdf7f8085330303801f25b222e7876452ac602ec (diff)
Set highestmodseq to zero when server using QRESYNC does not support permanent modsequences.
Change-Id: Idc61404580f308e22df90559f4a7d7a59759b273 Done-with: Valério Valério <valerio.valerio@jolla.com> Reviewed-by: Valerio Valerio <vdv100@gmail.com>
-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();