diff src/lib-index/mail-messageset.c @ 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 f62c2eee1fa8
children 124856b82684
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;
 }