Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-storage/index/index-search.c @ 9582:4432650c0699 HEAD
lib-storage: Fixed header searches to work correctly when there are multiple headers with same name.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 16 Jun 2010 18:29:45 +0100 |
parents | ef3b30b24c7c |
children |
line wrap: on
line diff
--- a/src/lib-storage/index/index-search.c Fri Jun 11 15:56:27 2010 +0100 +++ b/src/lib-storage/index/index-search.c Wed Jun 16 18:29:45 2010 +0100 @@ -484,7 +484,9 @@ ret = message_search_more(msg_search_ctx, &block) ? 1 : 0; } T_END; - ARG_SET_RESULT(arg, ret); + /* there may be multiple headers. don't mark this failed yet. */ + if (ret > 0) + ARG_SET_RESULT(arg, 1); } static void search_header_unmatch(struct mail_search_arg *arg,