add excludedmimetypes configuration variable

This commit is contained in:
Jean-Francois Dockes
2014-05-02 10:07:26 +02:00
parent c897a09cd3
commit 030e576cdb
14 changed files with 210 additions and 109 deletions
+5 -4
View File
@@ -5,10 +5,11 @@ topdir=`dirname $0`/..
initvariables $0
recollq 'boolean_uniqueterm One OR Two -Three' 2> $mystderr |
egrep -v '^Recoll query: ' > $mystdout
(
recollq 'boolean_uniqueterm One OR Two -Three'
diff -w ${myname}.txt 2>> $mystderr |
egrep -v '^Recoll query: ' >> $mystdout
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
checkresult
+8
View File
@@ -31,3 +31,11 @@ mhmboxquirks = tbird
[/home/dockes/projets/fulltext/testrecoll/cjk]
localfields= ; keyword = ckjtsthuniique; blabla= "some string"
[/home/dockes/projets/fulltext/testrecoll/idxtypes]
indexedmimetypes = text/plain
[/home/dockes/projets/fulltext/testrecoll/excltypes]
excludedmimetypes = text/plain
+2 -1
View File
@@ -4,9 +4,10 @@ topdir=`dirname $0`/..
. $topdir/shared.sh
initvariables $0
(
# Only
recollq filename:testdirfile dir:testrecoll/dir/d1 OR
recollq filename:testdirfile dir:testrecoll/dir/d1 OR \
dir:testrecoll/dir/d2 -dir:d2
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
thisdir=`dirname $0`
topdir=$thisdir/..
. $topdir/shared.sh
initvariables $0
(
echo "Should find idxtypes/idxt.txt only"
recollq idxtypesunique
echo
echo "Should find idxtypes/idxt.html only"
recollq excltypesunique
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
checkresult
+7
View File
@@ -0,0 +1,7 @@
Should find idxtypes/idxt.txt only
1 results
text/plain [file:///home/dockes/projets/fulltext/testrecoll/idxtypes/idxt.txt] [idxt.txt] 16 bytes
Should find idxtypes/idxt.html only
1 results
text/html [file:///home/dockes/projets/fulltext/testrecoll/excltypes/idxt.html] [idxt.html] 69 bytes