diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-07 09:15:46 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-07 09:15:46 +0200 |
commit | 8bc01b8494033919b0c9ed1aa35a94660ea7f46d (patch) | |
tree | 973ea2547ec1c91173f65eed664736ea958d9645 /common/mailpreprocessor.cpp | |
parent | 5cba3372881994b5afa96449237aab80cc424e6d (diff) | |
download | sink-8bc01b8494033919b0c9ed1aa35a94660ea7f46d.tar.gz sink-8bc01b8494033919b0c9ed1aa35a94660ea7f46d.zip |
Avoid an endless stream of errormessages in modelinteractivity test
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)) { |