Mercurial > dovecot > core-2.2
changeset 19470:95d355376204
lib-storage: mail_search_args_equal() ignored some differences.
- fuzzy flag
- MAIL_SEARCH_ARG_FLAG_USE_TZ
- INTHREAD thread type
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 06 Dec 2015 18:08:20 +0200 |
parents | 59a8b0aa6379 |
children | 91509e171e4b |
files | src/lib-storage/mail-search.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/mail-search.c Sun Dec 06 18:06:45 2015 +0200 +++ b/src/lib-storage/mail-search.c Sun Dec 06 18:08:20 2015 +0200 @@ -587,7 +587,9 @@ const struct mail_search_arg *arg2) { if (arg1->type != arg2->type || - arg1->match_not != arg2->match_not) + arg1->match_not != arg2->match_not || + arg1->fuzzy != arg2->fuzzy || + arg1->value.search_flags != arg2->value.search_flags) return FALSE; switch (arg1->type) { @@ -648,6 +650,8 @@ m1->type == m2->type; } case SEARCH_INTHREAD: + if (arg1->value.thread_type != arg2->value.thread_type) + return FALSE; return mail_search_args_equal(arg1->initialized.search_args, arg2->initialized.search_args); }