Mercurial > dovecot > core-2.2
changeset 538:3952bda70287 HEAD
Previous lowwater change broke STATUS.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 28 Oct 2002 09:50:23 +0200 |
parents | fe8a014a479e |
children | a182d31b46cd |
files | src/lib-storage/index/index-status.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-status.c Mon Oct 28 07:34:06 2002 +0200 +++ b/src/lib-storage/index/index-status.c Mon Oct 28 09:50:23 2002 +0200 @@ -17,7 +17,10 @@ } lowwater_uid = hdr->first_unseen_uid_lowwater; - if (lowwater_uid != 0) { + if (lowwater_uid == hdr->next_uid) { + /* no unseen messages */ + rec = NULL; + } else if (lowwater_uid != 0) { /* begin scanning from the low water mark */ rec = index->lookup_uid_range(index, lowwater_uid, hdr->next_uid - 1, &seq);