mh_mail needs to lowercase contentypes
This commit is contained in:
parent
0e531b73a7
commit
8fe7cb37d3
@ -24,7 +24,7 @@
|
|||||||
Dockes</holder>
|
Dockes</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
|
|
||||||
<releaseinfo>$Id: usermanual.sgml,v 1.29 2006-12-14 13:53:42 dockes Exp $</releaseinfo>
|
<releaseinfo>$Id: usermanual.sgml,v 1.30 2006-12-18 12:06:11 dockes Exp $</releaseinfo>
|
||||||
|
|
||||||
<abstract>
|
<abstract>
|
||||||
<para>This document introduces full text search notions
|
<para>This document introduces full text search notions
|
||||||
@ -1231,6 +1231,10 @@ RECOLL_CONFDIR=$recollconf $recolldata/examples/rclmon.sh stop
|
|||||||
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
|
||||||
|
<listitem><para>Openoffice: supported natively, but needs the
|
||||||
|
<command>unzip</command> command to be installed.</para>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
<listitem><para>PDF: pdftotext is part of the <ulink
|
<listitem><para>PDF: pdftotext is part of the <ulink
|
||||||
url="http://www.foolabs.com/xpdf/">Xpdf</ulink> package.</para>
|
url="http://www.foolabs.com/xpdf/">Xpdf</ulink> package.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#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
|
#endif
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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;
|
return;
|
||||||
}
|
}
|
||||||
att->m_contentType = content_type.value;
|
att->m_contentType = content_type.value;
|
||||||
|
stringtolower(att->m_contentType);
|
||||||
att->m_filename = filename;
|
att->m_filename = filename;
|
||||||
att->m_charset = charset;
|
att->m_charset = charset;
|
||||||
att->m_contentTransferEncoding = cte;
|
att->m_contentTransferEncoding = cte;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#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
|
#endif
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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;
|
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)
|
extern int stringisuffcmp(const string& s1, const string& s2)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
#ifndef _SMALLUT_H_INCLUDED_
|
#ifndef _SMALLUT_H_INCLUDED_
|
||||||
#define _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 <string>
|
#include <string>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <map>
|
#include <map>
|
||||||
@ -27,10 +27,11 @@ using std::list;
|
|||||||
using std::map;
|
using std::map;
|
||||||
#endif /* NO_NAMESPACES */
|
#endif /* NO_NAMESPACES */
|
||||||
|
|
||||||
|
// Note these are all ascii routines
|
||||||
extern int stringicmp(const string& s1, const string& s2);
|
extern int stringicmp(const string& s1, const string& s2);
|
||||||
extern int stringlowercmp(const string& alreadylower, const string& s2);
|
extern int stringlowercmp(const string& alreadylower, const string& s2);
|
||||||
extern int stringuppercmp(const string& alreadyupper, 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 ?
|
// Is one string the end part of the other ?
|
||||||
extern int stringisuffcmp(const string& s1, const string& s2);
|
extern int stringisuffcmp(const string& s1, const string& s2);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user