From: Timo Sirainen Date: Sat, 14 Jun 2003 17:43:26 +0000 (+0300) Subject: "SEARCH DELETED" didn't return anything if all messages were deleted. X-Git-Tag: 1.1.alpha1~4559 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c75e1bcb6b704bd3b4631371152ea1e5bbf5267;p=thirdparty%2Fdovecot%2Fcore.git "SEARCH DELETED" didn't return anything if all messages were deleted. --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/index-search.c b/src/lib-storage/index/index-search.c index 7fa7e80567..b44fc8f348 100644 --- a/src/lib-storage/index/index-search.c +++ b/src/lib-storage/index/index-search.c @@ -806,7 +806,7 @@ static int search_limit_by_flags(struct index_mailbox *ibox, return FALSE; /* UNDELETED with all deleted? */ - if (!args->not && + if (args->not && hdr->deleted_messages_count == hdr->messages_count) return FALSE;