changeset 32:b7d7474cbcb2 HEAD

reset error message so we don't fail before we're looking at an old failure..
author Timo Sirainen <tss@iki.fi>
date Mon, 26 Aug 2002 23:13:57 +0300
parents 33e86ee7d167
children 148cdb150e64
files src/lib-index/mail-messageset.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-messageset.c	Mon Aug 26 22:17:54 2002 +0300
+++ b/src/lib-index/mail-messageset.c	Mon Aug 26 23:13:57 2002 +0300
@@ -49,6 +49,9 @@
 	i_assert(expunges_before < seq);
 	expunges_found = *expunges != '\0';
 
+	/* Reset index errors, since we later rely on it to check if failed */
+	index_reset_error(index);
+
 	/* get the first non-expunged message. note that if all messages
 	   were expunged in the range, this points outside wanted range. */
 	rec = index->lookup(index, seq - expunges_before);