summaryrefslogtreecommitdiffstats
path: root/examples/imapresource/imapresource.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-06-20 15:32:58 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-06-20 15:32:58 +0200
commit893f6c75d1da2c0154d68fc5888f9a7cc43b76a6 (patch)
tree27ebc856b759e0653cf5268ac41c27b099f92c41 /examples/imapresource/imapresource.cpp
parent703b72511488068bdbc5e81172e674d0f07349ed (diff)
downloadsink-893f6c75d1da2c0154d68fc5888f9a7cc43b76a6.tar.gz
sink-893f6c75d1da2c0154d68fc5888f9a7cc43b76a6.zip
Only one commit per folder and skip folders that we fail to sync.
Diffstat (limited to 'examples/imapresource/imapresource.cpp')
-rw-r--r--examples/imapresource/imapresource.cpp6
1 files changed, 3 insertions, 3 deletions
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:
329 uids << msg.uid; 329 uids << msg.uid;
330 } 330 }
331 synchronizeMails(folder.normalizedPath(), messages); 331 synchronizeMails(folder.normalizedPath(), messages);
332 commit();
333 }).exec(); 332 }).exec();
334 messagesFuture.waitForFinished(); 333 messagesFuture.waitForFinished();
334 commit();
335 if (messagesFuture.errorCode()) { 335 if (messagesFuture.errorCode()) {
336 future.setError(1, "Folder sync failed: " + folder.normalizedPath()); 336 Warning() << "Folder sync failed: " << folder.normalizedPath();
337 return; 337 continue;
338 } 338 }
339 //Remove what there is to remove 339 //Remove what there is to remove
340 synchronizeRemovals(folder.normalizedPath(), uids); 340 synchronizeRemovals(folder.normalizedPath(), uids);