diff options
Diffstat (limited to 'examples')
-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 | } |