diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-14 13:23:48 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-14 13:23:48 +0200 |
commit | c6422cbbb24542a48e26b5f2448def3fcfc8694d (patch) | |
tree | bdb28916c3af3e61da3b6278adf4cee4c337e78f /examples/imapresource/imapresource.cpp | |
parent | ae1c5a0a53d1fd351b6fd33e8a46ad1034874489 (diff) | |
download | sink-c6422cbbb24542a48e26b5f2448def3fcfc8694d.tar.gz sink-c6422cbbb24542a48e26b5f2448def3fcfc8694d.zip |
We now have to manually parse for inspections
..since we turn of parsing for regular fetching.
Diffstat (limited to 'examples/imapresource/imapresource.cpp')
-rw-r--r-- | examples/imapresource/imapresource.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index 25d9534..9fb83ab 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp | |||
@@ -834,6 +834,10 @@ protected: | |||
834 | .then(imap->select(folderRemoteId)) | 834 | .then(imap->select(folderRemoteId)) |
835 | .then([](Imap::SelectResult){}) | 835 | .then([](Imap::SelectResult){}) |
836 | .then(imap->fetch(set, scope, [imap, messageByUid](const Imap::Message &message) { | 836 | .then(imap->fetch(set, scope, [imap, messageByUid](const Imap::Message &message) { |
837 | //We avoid parsing normally, so we have to do it explicitly here | ||
838 | if (message.msg) { | ||
839 | message.msg->parse(); | ||
840 | } | ||
837 | messageByUid->insert(message.uid, message); | 841 | messageByUid->insert(message.uid, message); |
838 | })); | 842 | })); |
839 | 843 | ||