Mercurial > dovecot > original-hg > dovecot-1.2
comparison 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 |
comparison
equal
deleted
inserted
replaced
9581:edc7da213d4c | 9582:4432650c0699 |
---|---|
482 i_unreached(); | 482 i_unreached(); |
483 } | 483 } |
484 ret = message_search_more(msg_search_ctx, &block) ? 1 : 0; | 484 ret = message_search_more(msg_search_ctx, &block) ? 1 : 0; |
485 } T_END; | 485 } T_END; |
486 | 486 |
487 ARG_SET_RESULT(arg, ret); | 487 /* there may be multiple headers. don't mark this failed yet. */ |
488 if (ret > 0) | |
489 ARG_SET_RESULT(arg, 1); | |
488 } | 490 } |
489 | 491 |
490 static void search_header_unmatch(struct mail_search_arg *arg, | 492 static void search_header_unmatch(struct mail_search_arg *arg, |
491 void *context ATTR_UNUSED) | 493 void *context ATTR_UNUSED) |
492 { | 494 { |