diff options
Diffstat (limited to 'common/mailpreprocessor.cpp')
-rw-r--r-- | common/mailpreprocessor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/mailpreprocessor.cpp b/common/mailpreprocessor.cpp index 005a93e..c38035e 100644 --- a/common/mailpreprocessor.cpp +++ b/common/mailpreprocessor.cpp | |||
@@ -37,6 +37,10 @@ QString MailPropertyExtractor::getFilePathFromMimeMessagePath(const QString &s) | |||
37 | void MailPropertyExtractor::updatedIndexedProperties(Sink::ApplicationDomain::Mail &mail) | 37 | void MailPropertyExtractor::updatedIndexedProperties(Sink::ApplicationDomain::Mail &mail) |
38 | { | 38 | { |
39 | const auto mimeMessagePath = getFilePathFromMimeMessagePath(mail.getMimeMessagePath()); | 39 | const auto mimeMessagePath = getFilePathFromMimeMessagePath(mail.getMimeMessagePath()); |
40 | if (mimeMessagePath.isNull()) { | ||
41 | Trace() << "No mime message"; | ||
42 | return; | ||
43 | } | ||
40 | Trace() << "Updating indexed properties " << mimeMessagePath; | 44 | Trace() << "Updating indexed properties " << mimeMessagePath; |
41 | QFile f(mimeMessagePath); | 45 | QFile f(mimeMessagePath); |
42 | if (!f.open(QIODevice::ReadOnly)) { | 46 | if (!f.open(QIODevice::ReadOnly)) { |