diff options
Diffstat (limited to 'examples/imapresource/imapresource.cpp')
-rw-r--r-- | examples/imapresource/imapresource.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index f9168e4..b5d224c 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp | |||
@@ -251,7 +251,6 @@ public: | |||
251 | 251 | ||
252 | createOrModify(bufferType, remoteId, mail); | 252 | createOrModify(bufferType, remoteId, mail); |
253 | } | 253 | } |
254 | commitSync(); | ||
255 | const auto elapsed = time->elapsed(); | 254 | const auto elapsed = time->elapsed(); |
256 | Log() << "Synchronized " << count << " mails in " << path << Sink::Log::TraceTime(elapsed) << " " << elapsed/qMax(count, 1) << " [ms/mail]"; | 255 | Log() << "Synchronized " << count << " mails in " << path << Sink::Log::TraceTime(elapsed) << " " << elapsed/qMax(count, 1) << " [ms/mail]"; |
257 | } | 256 | } |
@@ -310,7 +309,6 @@ public: | |||
310 | auto folderFuture = imap.fetchFolders([this, &imap, &folderList](const QVector<Folder> &folders) { | 309 | auto folderFuture = imap.fetchFolders([this, &imap, &folderList](const QVector<Folder> &folders) { |
311 | synchronizeFolders(folders); | 310 | synchronizeFolders(folders); |
312 | commit(); | 311 | commit(); |
313 | commitSync(); | ||
314 | folderList << folders; | 312 | folderList << folders; |
315 | 313 | ||
316 | }).exec(); | 314 | }).exec(); |
@@ -332,7 +330,6 @@ public: | |||
332 | } | 330 | } |
333 | synchronizeMails(folder.normalizedPath(), messages); | 331 | synchronizeMails(folder.normalizedPath(), messages); |
334 | commit(); | 332 | commit(); |
335 | commitSync(); | ||
336 | }).exec(); | 333 | }).exec(); |
337 | messagesFuture.waitForFinished(); | 334 | messagesFuture.waitForFinished(); |
338 | if (messagesFuture.errorCode()) { | 335 | if (messagesFuture.errorCode()) { |
@@ -342,7 +339,6 @@ public: | |||
342 | //Remove what there is to remove | 339 | //Remove what there is to remove |
343 | synchronizeRemovals(folder.normalizedPath(), uids); | 340 | synchronizeRemovals(folder.normalizedPath(), uids); |
344 | commit(); | 341 | commit(); |
345 | commitSync(); | ||
346 | Trace() << "Folder synchronized: " << folder.normalizedPath(); | 342 | Trace() << "Folder synchronized: " << folder.normalizedPath(); |
347 | } | 343 | } |
348 | 344 | ||