diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-08-14 09:03:24 -0600 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-08-14 09:03:24 -0600 |
commit | d87c789f311b7727d2db687e3891319e98ad6535 (patch) | |
tree | 460ab5b50d7512ac4ef9de2e89a74eddec418b5d /examples/imapresource/imapresource.cpp | |
parent | b63ae293c4f93d3bea9f1a7d96baf006cc459597 (diff) | |
download | sink-d87c789f311b7727d2db687e3891319e98ad6535.tar.gz sink-d87c789f311b7727d2db687e3891319e98ad6535.zip |
Skip over revisions that we can't replay.
Diffstat (limited to 'examples/imapresource/imapresource.cpp')
-rw-r--r-- | examples/imapresource/imapresource.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index 96055b4..0c0c134 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp | |||
@@ -621,7 +621,11 @@ public: | |||
621 | { | 621 | { |
622 | if (operation != Sink::Operation_Creation) { | 622 | if (operation != Sink::Operation_Creation) { |
623 | if(oldRemoteId.isEmpty()) { | 623 | if(oldRemoteId.isEmpty()) { |
624 | return KAsync::error<QByteArray>("Tried to replay modification without old remoteId."); | 624 | // return KAsync::error<QByteArray>("Tried to replay modification without old remoteId."); |
625 | qWarning() << "Tried to replay modification without old remoteId."; | ||
626 | // Since we can't recover from the situation we just skip over the revision. | ||
627 | // FIXME figure out how we can ever end up in this situation | ||
628 | return KAsync::null<QByteArray>(); | ||
625 | } | 629 | } |
626 | } | 630 | } |
627 | auto imap = QSharedPointer<ImapServerProxy>::create(mServer, mPort, &mSessionCache); | 631 | auto imap = QSharedPointer<ImapServerProxy>::create(mServer, mPort, &mSessionCache); |