diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-11 22:55:50 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-11 22:55:50 +0200 |
commit | e97fb6d6de7c9bda6e8f911c5f471f4059ae7470 (patch) | |
tree | 7e018b79088822a4d96e05750cf3d3abfe1eb17a /examples/imapresource/imapresource.cpp | |
parent | e663b740394c316dd53aa566d62931bce0b47150 (diff) | |
download | sink-e97fb6d6de7c9bda6e8f911c5f471f4059ae7470.tar.gz sink-e97fb6d6de7c9bda6e8f911c5f471f4059ae7470.zip |
Disabled automatic syncing of folders
I triggers a lot of work, and as we currently can't abort sync tasks and
have no priority lane for requests it's rather intrusive.
A sync will still be triggered when a folder is selected, so we're not
loosing a lot except the "pull everything offline" case.
Diffstat (limited to 'examples/imapresource/imapresource.cpp')
-rw-r--r-- | examples/imapresource/imapresource.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index 29ff03b..a6c0343 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp | |||
@@ -415,8 +415,9 @@ public: | |||
415 | list << Synchronizer::SyncRequest{query}; | 415 | list << Synchronizer::SyncRequest{query}; |
416 | } else { | 416 | } else { |
417 | list << Synchronizer::SyncRequest{Sink::QueryBase(ApplicationDomain::getTypeName<ApplicationDomain::Folder>())}; | 417 | list << Synchronizer::SyncRequest{Sink::QueryBase(ApplicationDomain::getTypeName<ApplicationDomain::Folder>())}; |
418 | //TODO automatic syncing off all folders is disabled for the time being | ||
418 | //This request depends on the previous one so we flush first. | 419 | //This request depends on the previous one so we flush first. |
419 | list << Synchronizer::SyncRequest{applyMailDefaults(Sink::QueryBase(ApplicationDomain::getTypeName<ApplicationDomain::Mail>())), QByteArray{}, Synchronizer::SyncRequest::RequestFlush}; | 420 | //list << Synchronizer::SyncRequest{applyMailDefaults(Sink::QueryBase(ApplicationDomain::getTypeName<ApplicationDomain::Mail>())), QByteArray{}, Synchronizer::SyncRequest::RequestFlush}; |
420 | } | 421 | } |
421 | return list; | 422 | return list; |
422 | } | 423 | } |