Mercurial > dovecot > original-hg > dovecot-1.2
changeset 155:fd9bd2f01a75 HEAD
EXPUNGE shouldn't do "internal error" when there's nothing to expunge..
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 05 Sep 2002 14:47:26 +0300 |
parents | 2dcabe0fd1cb |
children | e083f01122bb |
files | src/lib-storage/index/index-expunge.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-expunge.c Thu Sep 05 04:55:06 2002 +0300 +++ b/src/lib-storage/index/index-expunge.c Thu Sep 05 14:47:26 2002 +0300 @@ -11,8 +11,10 @@ i_assert(ibox->index->lock_type == MAIL_LOCK_EXCLUSIVE); hdr = ibox->index->get_header(ibox->index); - if (hdr->deleted_messages_count == 0) - return FALSE; + if (hdr->deleted_messages_count == 0) { + /* no deleted messages */ + return TRUE; + } /* find mails with DELETED flag and expunge them */ if (hdr->first_deleted_uid_lowwater > 1) {