changeset 144:b03fd5ed8ad1 HEAD

mail_index_uidset_foreach() still sometimes returned "Some messages weren't found".
author Timo Sirainen <tss@iki.fi>
date Wed, 04 Sep 2002 02:01:42 +0300
parents 0bb796d35d2a
children dd4c983dd0aa
files src/lib-index/mail-messageset.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-messageset.c	Wed Sep 04 01:56:48 2002 +0300
+++ b/src/lib-index/mail-messageset.c	Wed Sep 04 02:01:42 2002 +0300
@@ -274,7 +274,7 @@
 	MailIndexRecord *rec;
 	const char *input;
 	unsigned int uid, uid2;
-	int ret, all_found;
+	int ret;
 
 	i_assert(index->lock_type != MAIL_LOCK_UNLOCK);
 
@@ -284,7 +284,6 @@
 		return 1;
 	}
 
-	all_found = TRUE;
 	input = uidset;
 	while (*input != '\0') {
 		if (*input == '*') {
@@ -336,10 +335,8 @@
 						     func, context, error);
 			if (ret <= 0)
 				return ret;
-			if (ret == 2)
-				all_found = FALSE;
 		}
 	}
 
-	return all_found ? 1 : 2;
+	return 1;
 }