From 61ef099cd514e5c203a2f5a0ce9d006f81823b8a Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 20 May 2013 18:54:54 +0200 Subject: [PATCH] MaxMessages: make condition exactly symmetrical to condition below --- src/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync.c b/src/sync.c index 8b7ea57..bf48b7d 100644 --- a/src/sync.c +++ b/src/sync.c @@ -1300,7 +1300,7 @@ box_loaded( int sts, void *aux ) for (tmsg = svars->ctx[S]->msgs; tmsg && todel > 0; tmsg = tmsg->next) { if (tmsg->status & M_DEAD) continue; - if ((srec = tmsg->srec) && + if ((srec = tmsg->srec) && srec->uid[M] > 0 && ((tmsg->flags | srec->aflags[S]) & ~srec->dflags[S] & F_DELETED) && !(srec->status & (S_EXPIRE|S_EXPIRED))) todel--;