From b79c14d70012ac64492d496f81dd78d1dfc9f3ad Mon Sep 17 00:00:00 2001 From: dockes Date: Fri, 4 Feb 2005 09:21:37 +0000 Subject: [PATCH] *** empty log message *** --- src/sampleconf/mimeconf | 26 ++++++++++++++++++++++++++ src/sampleconf/mimemap | 21 +++++++++++++++++++++ src/sampleconf/recoll.conf | 23 +++++++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 src/sampleconf/mimeconf create mode 100644 src/sampleconf/mimemap create mode 100644 src/sampleconf/recoll.conf diff --git a/src/sampleconf/mimeconf b/src/sampleconf/mimeconf new file mode 100644 index 00000000..71d6ef80 --- /dev/null +++ b/src/sampleconf/mimeconf @@ -0,0 +1,26 @@ +# Processing for the different mime types. There are different sections for +# decompression, 'interning' for indexing and preview, and external viewers + +## These types need a first pass to create a temp file to work with. We use +# a script because uncompress utilities usually work in place, which is not +# suitable. The %t parameter will be changed to the name of a temporary +# directory by recoll. %f is the input file. rcluncomp will output the new +# file name on stdout, and you should do the same if you write another +# script (have a look at rcluncomp then). +application/x-gzip = uncompress rcluncomp gunzip %f %t +application/x-gzip = uncompress rcluncomp gunzip %f %t +application/x-bzip2 = uncompress rcluncomp bunzip2 %f %t + +## Indexing and internal preview +[index] +text/plain = internal +text/html = internal +application/pdf = exec rclpdf +application/postscript = exec rclps + +## External viewers +[view] +text/plain = xemacs %f +text/html = firefox -a firefox -remote "openFile(%u)" +application/pdf = xpdf %f +application/postscript = gv %f diff --git a/src/sampleconf/mimemap b/src/sampleconf/mimemap new file mode 100644 index 00000000..af25aadc --- /dev/null +++ b/src/sampleconf/mimemap @@ -0,0 +1,21 @@ + +.txt = text/plain +.text = text/plain +.d = text/plain + +.html = text/html +.htm = text/html +.shtml = text/html +.php = text/html + +.pdf = application/pdf + +.ps = application/postscript +.eps = application/postscript +.ai = application/postscript + +.gz = application/x-gzip +.Z = application/x-gzip +.bz2 = application/x-bzip2 + +[FILE] diff --git a/src/sampleconf/recoll.conf b/src/sampleconf/recoll.conf new file mode 100644 index 00000000..d685416c --- /dev/null +++ b/src/sampleconf/recoll.conf @@ -0,0 +1,23 @@ + +topdirs = \ + ~dockes +# /y/home/FaqsAndDocs/test/plain +# /y/home/FaqsAndDocs/test/html + + +mimemapfile = mimemap +mimeconffile = mimeconf + +dbdir = ~/.recoll/xapiandb + +defaultcharset = iso-8859-1 +defaultlanguage = french + +guesscharset = 0 + +[/y/home/FaqsAndDocs/test/plain] +defaultlanguage = french + +[/y/home/FaqsAndDocs/test/html] +defaultlanguage = french +