* mu-query.cc: now always search for normalized, lower-case values
This commit is contained in:
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
#include "mu-util.h"
|
#include "mu-util.h"
|
||||||
#include "mu-util-db.h"
|
#include "mu-util-db.h"
|
||||||
|
#include "mu-msg-str.h"
|
||||||
|
|
||||||
static void add_prefix (const MuMsgField* field,
|
static void add_prefix (const MuMsgField* field,
|
||||||
Xapian::QueryParser* qparser);
|
Xapian::QueryParser* qparser);
|
||||||
@ -246,7 +246,7 @@ mu_query_preprocess (const char *query)
|
|||||||
* will fixes some of the false-negatives. A full fix
|
* will fixes some of the false-negatives. A full fix
|
||||||
* probably requires some custom query parser.
|
* probably requires some custom query parser.
|
||||||
*/
|
*/
|
||||||
my_query = g_utf8_strdown (query, -1);
|
my_query = mu_msg_str_normalize(query, TRUE);
|
||||||
|
|
||||||
for (cur = my_query; *cur; ++cur) {
|
for (cur = my_query; *cur; ++cur) {
|
||||||
if (*cur == ':') /* we found a ':' */
|
if (*cur == ':') /* we found a ':' */
|
||||||
|
|||||||
Reference in New Issue
Block a user