diff --git a/src/doc/user/usermanual.sgml b/src/doc/user/usermanual.sgml index 86cc1818..83a70a86 100644 --- a/src/doc/user/usermanual.sgml +++ b/src/doc/user/usermanual.sgml @@ -24,7 +24,7 @@ Dockes - $Id: usermanual.sgml,v 1.29 2006-12-14 13:53:42 dockes Exp $ + $Id: usermanual.sgml,v 1.30 2006-12-18 12:06:11 dockes Exp $ This document introduces full text search notions @@ -1231,6 +1231,10 @@ RECOLL_CONFDIR=$recollconf $recolldata/examples/rclmon.sh stop + Openoffice: supported natively, but needs the + unzip command to be installed. + + PDF: pdftotext is part of the Xpdf package. diff --git a/src/internfile/mh_mail.cpp b/src/internfile/mh_mail.cpp index 13c8b2ed..3d2bba2d 100644 --- a/src/internfile/mh_mail.cpp +++ b/src/internfile/mh_mail.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: mh_mail.cpp,v 1.26 2006-12-16 15:39:54 dockes Exp $ (C) 2005 J.F.Dockes"; +static char rcsid[] = "@(#$Id: mh_mail.cpp,v 1.27 2006-12-18 12:06:11 dockes Exp $ (C) 2005 J.F.Dockes"; #endif /* * This program is free software; you can redistribute it and/or modify @@ -424,6 +424,7 @@ void MimeHandlerMail::walkmime(Binc::MimePart* doc, int depth) return; } att->m_contentType = content_type.value; + stringtolower(att->m_contentType); att->m_filename = filename; att->m_charset = charset; att->m_contentTransferEncoding = cte; diff --git a/src/utils/smallut.cpp b/src/utils/smallut.cpp index ed19f89b..488188aa 100644 --- a/src/utils/smallut.cpp +++ b/src/utils/smallut.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: smallut.cpp,v 1.23 2006-12-15 12:40:02 dockes Exp $ (C) 2004 J.F.Dockes"; +static char rcsid[] = "@(#$Id: smallut.cpp,v 1.24 2006-12-18 12:06:11 dockes Exp $ (C) 2004 J.F.Dockes"; #endif /* * This program is free software; you can redistribute it and/or modify @@ -77,6 +77,15 @@ int stringicmp(const string & s1, const string& s2) return size1 == size2 ? 0 : -1; } } +void stringtolower(string& io) +{ + string::iterator it = io.begin(); + string::iterator ite = io.end(); + while (it != ite) { + *it = ::tolower(*it); + it++; + } +} extern int stringisuffcmp(const string& s1, const string& s2) { diff --git a/src/utils/smallut.h b/src/utils/smallut.h index 3636d0b1..0fb98169 100644 --- a/src/utils/smallut.h +++ b/src/utils/smallut.h @@ -16,7 +16,7 @@ */ #ifndef _SMALLUT_H_INCLUDED_ #define _SMALLUT_H_INCLUDED_ -/* @(#$Id: smallut.h,v 1.23 2006-12-15 12:40:02 dockes Exp $ (C) 2004 J.F.Dockes */ +/* @(#$Id: smallut.h,v 1.24 2006-12-18 12:06:11 dockes Exp $ (C) 2004 J.F.Dockes */ #include #include #include @@ -27,10 +27,11 @@ using std::list; using std::map; #endif /* NO_NAMESPACES */ +// Note these are all ascii routines extern int stringicmp(const string& s1, const string& s2); extern int stringlowercmp(const string& alreadylower, const string& s2); extern int stringuppercmp(const string& alreadyupper, const string& s2); - +extern void stringtolower(string& io); // Is one string the end part of the other ? extern int stringisuffcmp(const string& s1, const string& s2);