dovecot-2.0: search: If body search fails due to I/O error, keep...

dovecot at dovecot.org dovecot at dovecot.org
Wed Oct 6 21:02:25 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/41454ed5a3eb
changeset: 12254:41454ed5a3eb
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Oct 06 19:02:20 2010 +0100
description:
search: If body search fails due to I/O error, keep the result as "unknown".
Found by Vadim Okun

diffstat:

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

diffs (12 lines):

diff -r c4f91b9acb01 -r 41454ed5a3eb src/lib-storage/index/index-search.c
--- a/src/lib-storage/index/index-search.c	Wed Oct 06 18:57:38 2010 +0100
+++ b/src/lib-storage/index/index-search.c	Wed Oct 06 19:02:20 2010 +0100
@@ -627,7 +627,7 @@
 		i_assert(ret >= 0 || ctx->input->stream_errno != 0);
 	}
 
-	ARG_SET_RESULT(arg, ret > 0);
+	ARG_SET_RESULT(arg, ret);
 }
 
 static int search_arg_match_text(struct mail_search_arg *args,


More information about the dovecot-cvs mailing list