diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-08-31 14:02:42 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-15 16:14:19 +0200 |
commit | 2bfccc6301f71db5bf45977bb2955c04fa6c1605 (patch) | |
tree | 688fb47df6f880e9287c319cde943f0286fe295b /examples/imapresource/imapresource.cpp | |
parent | 3d8802e235e9508a0bf3d8a1168ad11c95571579 (diff) | |
download | sink-2bfccc6301f71db5bf45977bb2955c04fa6c1605.tar.gz sink-2bfccc6301f71db5bf45977bb2955c04fa6c1605.zip |
Remember highestmodseq
Diffstat (limited to 'examples/imapresource/imapresource.cpp')
-rw-r--r-- | examples/imapresource/imapresource.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index 0b1437a..8422b49 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp | |||
@@ -236,6 +236,9 @@ public: | |||
236 | 236 | ||
237 | modify(ENTITY_TYPE_MAIL, remoteId, mail); | 237 | modify(ENTITY_TYPE_MAIL, remoteId, mail); |
238 | } | 238 | } |
239 | }) | ||
240 | .syncThen<void, SelectResult>([this, folder](const SelectResult &selectResult) { | ||
241 | syncStore().writeValue(folder.normalizedPath().toUtf8() + "changedsince", QByteArray::number(selectResult.highestModSequence)); | ||
239 | }); | 242 | }); |
240 | }) | 243 | }) |
241 | .then<void>([=]() { | 244 | .then<void>([=]() { |