Download this file

Maildir.sh    20 lines (13 with data), 597 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
topdir=`dirname $0`/..
. $topdir/shared.sh
initvariables $0
# See how many Maildir files were indexed. All Maildir messages have had
# MAILDIR_UNIQUEXXX added at the end of the 'Subject: ' line. Note that
# because of the attachments the relationship of file count to result count
# is not trivial. We do not use recollq here because any change in the
# indexing process is going to change the order of results.
xadump -d $RECOLL_CONFDIR/xapiandb -t maildir_uniquexxx -F | \
grep FreqFor > $mystdout 2> $mystderr
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
checkresult