summaryrefslogtreecommitdiffstats
path: root/common/mailpreprocessor.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-06-26 13:21:20 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-06-26 13:21:20 +0200
commitcf487248df311bd055844ce44786e28ea5aa7c2c (patch)
tree06c9bd80278855e4810cb194362e6e597a5329ee /common/mailpreprocessor.cpp
parent3db36de42fc986341b0fac8c4cbfe869f0bac356 (diff)
downloadsink-cf487248df311bd055844ce44786e28ea5aa7c2c.tar.gz
sink-cf487248df311bd055844ce44786e28ea5aa7c2c.zip
Reuse mailpreprocessor
Diffstat (limited to 'common/mailpreprocessor.cpp')
-rw-r--r--common/mailpreprocessor.cpp7
1 files changed, 6 insertions, 1 deletions
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 @@
29 29
30using namespace Sink; 30using namespace Sink;
31 31
32QString MailPropertyExtractor::getFilePathFromMimeMessagePath(const QString &s) const
33{
34 return s;
35}
36
32void MailPropertyExtractor::updatedIndexedProperties(Sink::ApplicationDomain::Mail &mail) 37void MailPropertyExtractor::updatedIndexedProperties(Sink::ApplicationDomain::Mail &mail)
33{ 38{
34 const auto mimeMessagePath = mail.getMimeMessagePath(); 39 const auto mimeMessagePath = getFilePathFromMimeMessagePath(mail.getMimeMessagePath());
35 Trace() << "Updating indexed properties " << mimeMessagePath; 40 Trace() << "Updating indexed properties " << mimeMessagePath;
36 QFile f(mimeMessagePath); 41 QFile f(mimeMessagePath);
37 if (!f.open(QIODevice::ReadOnly)) { 42 if (!f.open(QIODevice::ReadOnly)) {