diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-30 17:31:17 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-30 17:31:17 +0200 |
commit | b34fa2bfd5a3fb67cff6fd7af91e179e26444b71 (patch) | |
tree | ae7f1d5069a4740b81a55366cdf31c77d4ca3f89 /examples/imapresource/imapresource.cpp | |
parent | ef9a070c10dffc346b7dee0c7714d7bda7663017 (diff) | |
download | sink-b34fa2bfd5a3fb67cff6fd7af91e179e26444b71.tar.gz sink-b34fa2bfd5a3fb67cff6fd7af91e179e26444b71.zip |
More debug output
Diffstat (limited to 'examples/imapresource/imapresource.cpp')
-rw-r--r-- | examples/imapresource/imapresource.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index 94b4b27..e23add8 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp | |||
@@ -344,6 +344,7 @@ public: | |||
344 | const bool messageMoved = changedProperties.contains(ApplicationDomain::Mail::Folder::name); | 344 | const bool messageMoved = changedProperties.contains(ApplicationDomain::Mail::Folder::name); |
345 | const bool messageChanged = changedProperties.contains(ApplicationDomain::Mail::MimeMessage::name); | 345 | const bool messageChanged = changedProperties.contains(ApplicationDomain::Mail::MimeMessage::name); |
346 | if (messageChanged || messageMoved) { | 346 | if (messageChanged || messageMoved) { |
347 | Trace() << "Replacing message."; | ||
347 | const auto folderId = folderIdFromMailRid(oldRemoteId); | 348 | const auto folderId = folderIdFromMailRid(oldRemoteId); |
348 | const QString oldMailbox = syncStore().resolveLocalId(ENTITY_TYPE_FOLDER, folderId); | 349 | const QString oldMailbox = syncStore().resolveLocalId(ENTITY_TYPE_FOLDER, folderId); |
349 | QByteArray content = KMime::LFtoCRLF(mail.getMimeMessage()); | 350 | QByteArray content = KMime::LFtoCRLF(mail.getMimeMessage()); |
@@ -362,6 +363,7 @@ public: | |||
362 | return *rid; | 363 | return *rid; |
363 | }); | 364 | }); |
364 | } else { | 365 | } else { |
366 | Trace() << "Updating flags only."; | ||
365 | KIMAP::ImapSet set; | 367 | KIMAP::ImapSet set; |
366 | set.add(uid); | 368 | set.add(uid); |
367 | return login.then(imap->select(mailbox)) | 369 | return login.then(imap->select(mailbox)) |