From cf487248df311bd055844ce44786e28ea5aa7c2c Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 26 Jun 2016 13:21:20 +0200 Subject: Reuse mailpreprocessor --- common/mailpreprocessor.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'common/mailpreprocessor.cpp') diff --git a/common/mailpreprocessor.cpp b/common/mailpreprocessor.cpp index 64cb3d9..005a93e 100644 --- a/common/mailpreprocessor.cpp +++ b/common/mailpreprocessor.cpp @@ -29,9 +29,14 @@ using namespace Sink; +QString MailPropertyExtractor::getFilePathFromMimeMessagePath(const QString &s) const +{ + return s; +} + void MailPropertyExtractor::updatedIndexedProperties(Sink::ApplicationDomain::Mail &mail) { - const auto mimeMessagePath = mail.getMimeMessagePath(); + const auto mimeMessagePath = getFilePathFromMimeMessagePath(mail.getMimeMessagePath()); Trace() << "Updating indexed properties " << mimeMessagePath; QFile f(mimeMessagePath); if (!f.open(QIODevice::ReadOnly)) { -- cgit v1.2.3