diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-20 17:46:10 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-21 09:18:50 +0200 |
commit | 0c1f6da51631c0a573a44e2f93eb4012d52dfe5c (patch) | |
tree | cf3cd3bec9fabd44a7107f47e7b0b057880ecb61 /common/mail/threadindexer.cpp | |
parent | 9a03eb1a54c6289773bc1b8eb96181ed01553927 (diff) | |
download | sink-0c1f6da51631c0a573a44e2f93eb4012d52dfe5c.tar.gz sink-0c1f6da51631c0a573a44e2f93eb4012d52dfe5c.zip |
Get access to properties in indexes.
Diffstat (limited to 'common/mail/threadindexer.cpp')
-rw-r--r-- | common/mail/threadindexer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/mail/threadindexer.cpp b/common/mail/threadindexer.cpp index 4a18625..17ee31e 100644 --- a/common/mail/threadindexer.cpp +++ b/common/mail/threadindexer.cpp | |||
@@ -91,16 +91,16 @@ void ThreadIndexer::updateThreadingIndex(const QByteArray &identifier, const App | |||
91 | QVector<QByteArray> thread; | 91 | QVector<QByteArray> thread; |
92 | 92 | ||
93 | //a child already registered our thread. | 93 | //a child already registered our thread. |
94 | thread = index().secondaryLookup<Mail::MessageId, Mail::ThreadId>(messageId, transaction); | 94 | thread = index().secondaryLookup<Mail::MessageId, Mail::ThreadId>(messageId); |
95 | 95 | ||
96 | //If parent is already available, add to thread of parent | 96 | //If parent is already available, add to thread of parent |
97 | if (thread.isEmpty() && parentMessageId.isValid()) { | 97 | if (thread.isEmpty() && parentMessageId.isValid()) { |
98 | thread = index().secondaryLookup<Mail::MessageId, Mail::ThreadId>(parentMessageId, transaction); | 98 | thread = index().secondaryLookup<Mail::MessageId, Mail::ThreadId>(parentMessageId); |
99 | SinkTrace() << "Found parent"; | 99 | SinkTrace() << "Found parent"; |
100 | } | 100 | } |
101 | if (thread.isEmpty()) { | 101 | if (thread.isEmpty()) { |
102 | //Try to lookup the thread by subject: | 102 | //Try to lookup the thread by subject: |
103 | thread = index().secondaryLookup<Mail::Subject, Mail::ThreadId>(normalizedSubject, transaction); | 103 | thread = index().secondaryLookup<Mail::Subject, Mail::ThreadId>(normalizedSubject); |
104 | if (thread.isEmpty()) { | 104 | if (thread.isEmpty()) { |
105 | SinkTrace() << "Created a new thread "; | 105 | SinkTrace() << "Created a new thread "; |
106 | thread << QUuid::createUuid().toByteArray(); | 106 | thread << QUuid::createUuid().toByteArray(); |