diff options
Diffstat (limited to 'common/domain/mail.cpp')
-rw-r--r-- | common/domain/mail.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/domain/mail.cpp b/common/domain/mail.cpp index ffe322e..5373ac6 100644 --- a/common/domain/mail.cpp +++ b/common/domain/mail.cpp | |||
@@ -58,6 +58,14 @@ void TypeImplementation<Mail>::index(const QByteArray &identifier, const BufferA | |||
58 | } | 58 | } |
59 | } | 59 | } |
60 | 60 | ||
61 | void TypeImplementation<Mail>::removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Akonadi2::Storage::Transaction &transaction) | ||
62 | { | ||
63 | const auto uid = bufferAdaptor.getProperty("uid"); | ||
64 | if (uid.isValid()) { | ||
65 | Index("mail.index.uid", transaction).remove(uid.toByteArray(), identifier); | ||
66 | } | ||
67 | } | ||
68 | |||
61 | QSharedPointer<ReadPropertyMapper<TypeImplementation<Mail>::Buffer> > TypeImplementation<Mail>::initializeReadPropertyMapper() | 69 | QSharedPointer<ReadPropertyMapper<TypeImplementation<Mail>::Buffer> > TypeImplementation<Mail>::initializeReadPropertyMapper() |
62 | { | 70 | { |
63 | auto propertyMapper = QSharedPointer<ReadPropertyMapper<Buffer> >::create(); | 71 | auto propertyMapper = QSharedPointer<ReadPropertyMapper<Buffer> >::create(); |