diff options
Diffstat (limited to 'examples/maildirresource/maildirresource.cpp')
-rw-r--r-- | examples/maildirresource/maildirresource.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/maildirresource/maildirresource.cpp b/examples/maildirresource/maildirresource.cpp index a19756a..f888b5d 100644 --- a/examples/maildirresource/maildirresource.cpp +++ b/examples/maildirresource/maildirresource.cpp | |||
@@ -52,6 +52,7 @@ MaildirResource::MaildirResource(const QByteArray &instanceIdentifier, const QSh | |||
52 | QVector<Akonadi2::Preprocessor*>() << new DefaultIndexUpdater<Akonadi2::ApplicationDomain::Folder>); | 52 | QVector<Akonadi2::Preprocessor*>() << new DefaultIndexUpdater<Akonadi2::ApplicationDomain::Folder>); |
53 | auto config = ResourceConfig::getConfiguration(instanceIdentifier); | 53 | auto config = ResourceConfig::getConfiguration(instanceIdentifier); |
54 | mMaildirPath = config.value("path").toString(); | 54 | mMaildirPath = config.value("path").toString(); |
55 | Trace() << "Started maildir resource for maildir: " << mMaildirPath; | ||
55 | } | 56 | } |
56 | 57 | ||
57 | QString MaildirResource::resolveRemoteId(const QByteArray &bufferType, const QString &remoteId, Akonadi2::Storage::Transaction &transaction) | 58 | QString MaildirResource::resolveRemoteId(const QByteArray &bufferType, const QString &remoteId, Akonadi2::Storage::Transaction &transaction) |
@@ -103,6 +104,7 @@ void MaildirResource::synchronizeFolders(Akonadi2::Storage::Transaction &transac | |||
103 | auto synchronizationTransaction = store.createTransaction(Akonadi2::Storage::ReadWrite); | 104 | auto synchronizationTransaction = store.createTransaction(Akonadi2::Storage::ReadWrite); |
104 | for (const auto folder : folderList) { | 105 | for (const auto folder : folderList) { |
105 | const auto remoteId = folder.toUtf8(); | 106 | const auto remoteId = folder.toUtf8(); |
107 | Trace() << "Processing folder " << remoteId; | ||
106 | auto akonadiId = resolveRemoteId(bufferType.toUtf8(), remoteId, synchronizationTransaction); | 108 | auto akonadiId = resolveRemoteId(bufferType.toUtf8(), remoteId, synchronizationTransaction); |
107 | 109 | ||
108 | bool found = false; | 110 | bool found = false; |