dovecot-1.2: lib-storage: Fixed header searches to work correctl...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 16 20:30:03 EEST 2010


details:   http://hg.dovecot.org/dovecot-1.2/rev/4432650c0699
changeset: 9582:4432650c0699
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 16 18:29:45 2010 +0100
description:
lib-storage: Fixed header searches to work correctly when there are multiple headers with same name.

diffstat:

 src/lib-storage/index/index-search.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r edc7da213d4c -r 4432650c0699 src/lib-storage/index/index-search.c
--- 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,


More information about the dovecot-cvs mailing list