File Do-not-block-indexing-of-text-plain-files-without-txt-extension.patch of Package baloo5.openSUSE_Backports_SLE-12-SP1
From: Priya Satbhaya <priyasatbhaya64@gmail.com>
Date: Mon, 14 Mar 2016 07:44:57 +0000
Subject: Remove code blocking indexing of text/plain files without .txt extension
X-Git-Url: http://quickgit.kde.org/?p=baloo.git&a=commitdiff&h=06efd6c05c15a64b53daac9e598666af584488ec
---
Remove code blocking indexing of text/plain files without .txt extension
REVIEW: 127362
BUG: 358098
---
--- a/src/file/extractor/app.cpp
+++ b/src/file/extractor/app.cpp
@@ -135,18 +135,6 @@
return;
}
- //
- // HACK: We only want to index plain text files which end with a .txt
- //
- if (mimetype == QLatin1String("text/plain")) {
- if (!url.endsWith(QLatin1String(".txt"))) {
- qCDebug(BALOO) << "text/plain does not end with .txt. Ignoring";
- tr->removePhaseOne(id);
- return;
- }
- }
-
- //
// HACK: Also, we're ignoring ttext files which are greater tha 10 Mb as we
// have trouble processing them
//