dovecot-2.2: fts-lucene: Fixed handling non-lowercase SEARCH HEA...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Aug 10 05:24:41 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/77f2510bb009
changeset: 14813:77f2510bb009
user: Timo Sirainen <tss at iki.fi>
date: Sat Jul 28 20:00:32 2012 +0300
description:
fts-lucene: Fixed handling non-lowercase SEARCH HEADER FROM/TO/SUBJECT/CC/BCC
Based on patch by Matthew Powell.
diffstat:
src/plugins/fts-lucene/lucene-wrapper.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 4ddb9117a178 -r 77f2510bb009 src/plugins/fts-lucene/lucene-wrapper.cc
--- a/src/plugins/fts-lucene/lucene-wrapper.cc Sat Jul 28 19:57:10 2012 +0300
+++ b/src/plugins/fts-lucene/lucene-wrapper.cc Sat Jul 28 20:00:32 2012 +0300
@@ -1098,7 +1098,7 @@
return false;
q = lucene_get_query(index,
- t_lucene_utf8_to_tchar(index, arg->hdr_field_name, FALSE),
+ t_lucene_utf8_to_tchar(index, t_str_lcase(arg->hdr_field_name), FALSE),
arg);
break;
default:
@@ -1141,7 +1141,7 @@
if (*arg->value.str == '\0') {
/* checking potential existence of the header name */
q = lucene_get_query_str(index, _T("hdr"),
- arg->hdr_field_name, FALSE);
+ t_str_lcase(arg->hdr_field_name), FALSE);
break;
}
More information about the dovecot-cvs
mailing list