diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-18 10:46:15 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-18 10:46:15 +0200 |
commit | 2485dbb0f287d93061bc5098a8e11358d3d0d6f9 (patch) | |
tree | 03db841075f624565632b59f2dfd947eb6b6382f /examples/imapresource/imapresource.cpp | |
parent | 172e8c59defdc83ee11af3de923847024ed1f7e2 (diff) | |
download | sink-2485dbb0f287d93061bc5098a8e11358d3d0d6f9.tar.gz sink-2485dbb0f287d93061bc5098a8e11358d3d0d6f9.zip |
Test what happens if we add a bogus message to the imap resource.
This test currently fails because we fail to recover.
Diffstat (limited to 'examples/imapresource/imapresource.cpp')
-rw-r--r-- | examples/imapresource/imapresource.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index b9c819b..0527902 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp | |||
@@ -897,6 +897,10 @@ protected: | |||
897 | const auto folderRemoteId = syncStore->resolveLocalId(ENTITY_TYPE_FOLDER, mail.getFolder()); | 897 | const auto folderRemoteId = syncStore->resolveLocalId(ENTITY_TYPE_FOLDER, mail.getFolder()); |
898 | const auto mailRemoteId = syncStore->resolveLocalId(ENTITY_TYPE_MAIL, mail.identifier()); | 898 | const auto mailRemoteId = syncStore->resolveLocalId(ENTITY_TYPE_MAIL, mail.identifier()); |
899 | if (mailRemoteId.isEmpty() || folderRemoteId.isEmpty()) { | 899 | if (mailRemoteId.isEmpty() || folderRemoteId.isEmpty()) { |
900 | //There is no remote id to find if we expect the message to not exist | ||
901 | if (inspectionType == Sink::ResourceControl::Inspection::ExistenceInspectionType && !expectedValue.toBool()) { | ||
902 | return KAsync::null<void>(); | ||
903 | } | ||
900 | SinkWarning() << "Missing remote id for folder or mail. " << mailRemoteId << folderRemoteId; | 904 | SinkWarning() << "Missing remote id for folder or mail. " << mailRemoteId << folderRemoteId; |
901 | return KAsync::error<void>(); | 905 | return KAsync::error<void>(); |
902 | } | 906 | } |