From eee5d9707f544eec7d2432dc1ae76e41cfcdce28 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 26 Feb 2017 22:07:23 +0100 Subject: Skip messages that we can't fetch anyways. --- examples/imapresource/imapresource.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/imapresource/imapresource.cpp') diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index 04cedff..5bf0c30 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp @@ -475,7 +475,8 @@ public: folderRemoteId = f; } else { if (folderRemoteId != f) { - SinkWarningCtx(mLogCtx) << "Not all messages come from the same folder " << r << folderRemoteId; + SinkWarningCtx(mLogCtx) << "Not all messages come from the same folder " << r << folderRemoteId << ". Skipping message."; + continue; } } toFetch << uidFromMailRid(r); -- cgit v1.2.3