[dovecot-cvs] dovecot/src/lib-storage/index index-status.c,1.16,1.17
cras at procontrol.fi
cras at procontrol.fi
Mon Oct 28 09:50:25 EET 2002
Update of /home/cvs/dovecot/src/lib-storage/index
In directory danu:/tmp/cvs-serv11041
Modified Files:
index-status.c
Log Message:
Previous lowwater change broke STATUS.
Index: index-status.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-status.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- index-status.c 19 Oct 2002 23:33:56 -0000 1.16
+++ index-status.c 28 Oct 2002 07:50:23 -0000 1.17
@@ -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);
More information about the dovecot-cvs
mailing list