Skip to content

Commit

Permalink
[qmf] Set highestmodseq to zero when server using QRESYNC does not su…
Browse files Browse the repository at this point in the history
…pport permanent modsequences.
  • Loading branch information
Valério Valério committed Feb 9, 2015
1 parent ea6cf3e commit 12e104e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qmf/src/plugins/messageservices/imap/imapstrategy.cpp
Expand Up @@ -3754,7 +3754,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();
Expand Down

0 comments on commit 12e104e

Please sign in to comment.