dovecot-2.0: lib-storage: Fixed header searches to work correctl...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jun 16 20:29:50 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/3e50223d0014
changeset: 11558:3e50223d0014
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 3edf323da761 -r 3e50223d0014 src/lib-storage/index/index-search.c
--- a/src/lib-storage/index/index-search.c Wed Jun 16 17:38:15 2010 +0100
+++ b/src/lib-storage/index/index-search.c Wed Jun 16 18:29:45 2010 +0100
@@ -536,7 +536,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