*** empty log message ***

This commit is contained in:
dockes 2005-11-25 09:14:14 +00:00
parent cc0c72748e
commit 46e82f550a
3 changed files with 13 additions and 15 deletions

View File

@ -1,5 +1,5 @@
#ifndef lint #ifndef lint
static char rcsid[] = "@(#$Id: indexer.cpp,v 1.17 2005-11-24 07:16:15 dockes Exp $ (C) 2004 J.F.Dockes"; static char rcsid[] = "@(#$Id: indexer.cpp,v 1.18 2005-11-25 09:13:39 dockes Exp $ (C) 2004 J.F.Dockes";
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <sys/stat.h> #include <sys/stat.h>
@ -106,7 +106,7 @@ bool DbIndexer::index()
string skipped; string skipped;
if (config->getConfParam("skippedNames", skipped)) { if (config->getConfParam("skippedNames", skipped)) {
list<string> skpl; list<string> skpl;
ConfTree::stringToStrings(skipped, skpl); stringToStrings(skipped, skpl);
list<string>::const_iterator it; list<string>::const_iterator it;
for (it = skpl.begin(); it != skpl.end(); it++) { for (it = skpl.begin(); it != skpl.end(); it++) {
walker.addSkippedName(*it); walker.addSkippedName(*it);
@ -131,7 +131,7 @@ bool DbIndexer::index()
string slangs; string slangs;
if (config->getConfParam("indexstemminglanguages", slangs)) { if (config->getConfParam("indexstemminglanguages", slangs)) {
list<string> langs; list<string> langs;
ConfTree::stringToStrings(slangs, langs); stringToStrings(slangs, langs);
for (list<string>::const_iterator it = langs.begin(); for (list<string>::const_iterator it = langs.begin();
it != langs.end(); it++) { it != langs.end(); it++) {
db.createStemDb(*it); db.createStemDb(*it);
@ -224,7 +224,7 @@ bool ConfIndexer::index()
return false; return false;
} }
list<string> tdl; // List of directories to be indexed list<string> tdl; // List of directories to be indexed
if (!ConfTree::stringToStrings(topdirs, tdl)) { if (!stringToStrings(topdirs, tdl)) {
LOGERR(("ConfIndexer::index: parse error for directory list\n")); LOGERR(("ConfIndexer::index: parse error for directory list\n"));
return false; return false;
} }

View File

@ -1,5 +1,5 @@
#ifndef lint #ifndef lint
static char rcsid[] = "@(#$Id: mimetype.cpp,v 1.14 2005-11-24 07:16:15 dockes Exp $ (C) 2004 J.F.Dockes"; static char rcsid[] = "@(#$Id: mimetype.cpp,v 1.15 2005-11-25 09:13:38 dockes Exp $ (C) 2004 J.F.Dockes";
#endif #endif
#ifndef TEST_MIMETYPE #ifndef TEST_MIMETYPE
@ -68,7 +68,7 @@ static string mimetypefromdata(const string &fn, bool usfc)
// Now looks like ": text/plain; charset=us-ascii" // Now looks like ": text/plain; charset=us-ascii"
// Split it, and take second field // Split it, and take second field
list<string> res; list<string> res;
ConfTree::stringToStrings(result, res); stringToStrings(result, res);
if (res.size() <= 1) if (res.size() <= 1)
return ""; return "";
list<string>::iterator it = res.begin(); list<string>::iterator it = res.begin();

View File

@ -1,4 +1,4 @@
# @(#$Id: mimeconf,v 1.10 2005-11-21 16:05:07 dockes Exp $ (C) 2004 J.F.Dockes # @(#$Id: mimeconf,v 1.11 2005-11-25 09:14:14 dockes Exp $ (C) 2004 J.F.Dockes
# Recoll : associations of mime types to processing filters. # Recoll : associations of mime types to processing filters.
# There are different sections for decompression, 'interning' for indexing # There are different sections for decompression, 'interning' for indexing
@ -25,15 +25,9 @@ application/x-bzip2 = uncompress rcluncomp bunzip2 %f %t
# The external (exec) filters output the document in simple html format, # The external (exec) filters output the document in simple html format,
# have a look at the scripts. # have a look at the scripts.
[index] [index]
text/plain = internal application/msword = exec rcldoc
text/html = internal
text/x-mail = internal
message/rfc822 = internal
application/pdf = exec rclpdf application/pdf = exec rclpdf
application/postscript = exec rclps application/postscript = exec rclps
application/msword = exec rcldoc
application/vnd.sun.xml.calc = exec rclsoff application/vnd.sun.xml.calc = exec rclsoff
application/vnd.sun.xml.calc.template = exec rclsoff application/vnd.sun.xml.calc.template = exec rclsoff
application/vnd.sun.xml.draw = exec rclsoff application/vnd.sun.xml.draw = exec rclsoff
@ -45,9 +39,13 @@ application/vnd.sun.xml.writer = exec rclsoff
application/vnd.sun.xml.writer.global = exec rclsoff application/vnd.sun.xml.writer.global = exec rclsoff
application/vnd.sun.xml.writer.template = exec rclsoff application/vnd.sun.xml.writer.template = exec rclsoff
text/x-gaim-log = exec rclgaim message/rfc822 = internal
text/html = internal
text/plain = internal
text/rtf = exec rclrtf text/rtf = exec rclrtf
text/x-gaim-log = exec rclgaim
text/x-mail = internal
## ##
# External viewers, launched when you double-click a result entry # External viewers, launched when you double-click a result entry