From 893f6c75d1da2c0154d68fc5888f9a7cc43b76a6 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 20 Jun 2016 15:32:58 +0200 Subject: Only one commit per folder and skip folders that we fail to sync. --- examples/imapresource/imapresource.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/imapresource/imapresource.cpp') diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index b5d224c..30ccf95 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp @@ -329,12 +329,12 @@ public: uids << msg.uid; } synchronizeMails(folder.normalizedPath(), messages); - commit(); }).exec(); messagesFuture.waitForFinished(); + commit(); if (messagesFuture.errorCode()) { - future.setError(1, "Folder sync failed: " + folder.normalizedPath()); - return; + Warning() << "Folder sync failed: " << folder.normalizedPath(); + continue; } //Remove what there is to remove synchronizeRemovals(folder.normalizedPath(), uids); -- cgit v1.2.3