# HG changeset patch # User Timo Sirainen # Date 1031094102 -10800 # Node ID b03fd5ed8ad1f2d8f9f116d9552c3804b3a26c71 # Parent 0bb796d35d2a544502c47f4d5a9bdbe80ea291cf mail_index_uidset_foreach() still sometimes returned "Some messages weren't found". diff -r 0bb796d35d2a -r b03fd5ed8ad1 src/lib-index/mail-messageset.c --- 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; }