dovecot-2.2: lib-storage: Fixed searching with multiple paramete...

dovecot at dovecot.org dovecot at dovecot.org
Thu Apr 4 19:03:36 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/088481a77a7a
changeset: 16163:088481a77a7a
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Apr 04 19:03:26 2013 +0300
description:
lib-storage: Fixed searching with multiple parameters and prefetching.

diffstat:

 src/lib-storage/mail-search.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r ec933ef95687 -r 088481a77a7a src/lib-storage/mail-search.c
--- a/src/lib-storage/mail-search.c	Thu Apr 04 18:18:50 2013 +0300
+++ b/src/lib-storage/mail-search.c	Thu Apr 04 19:03:26 2013 +0300
@@ -852,7 +852,10 @@
 void mail_search_args_result_serialize(const struct mail_search_args *args,
 				       buffer_t *dest)
 {
-	mail_search_args_result_serialize_arg(args->args, dest);
+	const struct mail_search_arg *arg;
+
+	for (arg = args->args; arg != NULL; arg = arg->next)
+		mail_search_args_result_serialize_arg(arg, dest);
 }
 
 static void
@@ -883,5 +886,8 @@
 void mail_search_args_result_deserialize(struct mail_search_args *args,
 					 const unsigned char *data, size_t size)
 {
-	mail_search_args_result_deserialize_arg(args->args, &data, &size);
+	struct mail_search_arg *arg;
+
+	for (arg = args->args; arg != NULL; arg = arg->next)
+		mail_search_args_result_deserialize_arg(arg, &data, &size);
 }


More information about the dovecot-cvs mailing list