diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-10-29 00:43:15 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-10-29 00:43:15 +0100 |
commit | 70faf80be4146b17a59f9616404b21625d7400f6 (patch) | |
tree | 4fd4b44be533720f2804e8fd5f5434991138eb80 /common/domain/mail.cpp | |
parent | 20f049b65c4bd8c3d0c16bbf398641675648a93f (diff) | |
parent | bb1b238d6982abe1e640fbf424234b2c5389642b (diff) | |
download | sink-70faf80be4146b17a59f9616404b21625d7400f6.tar.gz sink-70faf80be4146b17a59f9616404b21625d7400f6.zip |
Merge branch 'feature/preprocessor' into develop
Diffstat (limited to 'common/domain/mail.cpp')
-rw-r--r-- | common/domain/mail.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/common/domain/mail.cpp b/common/domain/mail.cpp index d40dde9..ffe322e 100644 --- a/common/domain/mail.cpp +++ b/common/domain/mail.cpp | |||
@@ -50,12 +50,11 @@ ResultSet TypeImplementation<Mail>::queryIndexes(const Akonadi2::Query &query, c | |||
50 | return ResultSet(keys); | 50 | return ResultSet(keys); |
51 | } | 51 | } |
52 | 52 | ||
53 | void TypeImplementation<Mail>::index(const Mail &type, Akonadi2::Storage::Transaction &transaction) | 53 | void TypeImplementation<Mail>::index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Akonadi2::Storage::Transaction &transaction) |
54 | { | 54 | { |
55 | const auto uid = type.getProperty("uid"); | 55 | const auto uid = bufferAdaptor.getProperty("uid"); |
56 | if (uid.isValid()) { | 56 | if (uid.isValid()) { |
57 | Index uidIndex("mail.index.uid", transaction); | 57 | Index("mail.index.uid", transaction).add(uid.toByteArray(), identifier); |
58 | uidIndex.add(uid.toByteArray(), type.identifier()); | ||
59 | } | 58 | } |
60 | } | 59 | } |
61 | 60 | ||