From 21abb22c988d0442faf3ce350c0f984ed7d45030 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sat, 27 May 2006 12:43:03 +0000 Subject: [PATCH] seen messages are eligible for expiration even if they are recent in the mailbox. --- src/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync.c b/src/sync.c index 9aaddbf..a929822 100644 --- a/src/sync.c +++ b/src/sync.c @@ -1222,7 +1222,7 @@ msgs_found_sel( sync_vars_t *svars, int t ) if (!(nflags & F_DELETED) || (srec->status & (S_EXPIRE|S_EXPIRED))) { if (nflags & F_FLAGGED) todel--; - else if (!(tmsg->status & M_RECENT) && + else if ((!(tmsg->status & M_RECENT) || (tmsg->flags & F_SEEN)) && (todel > 0 || ((srec->status & (S_EXPIRE|S_EXPIRED)) == (S_EXPIRE|S_EXPIRED)) || ((srec->status & (S_EXPIRE|S_EXPIRED)) && (tmsg->flags & F_DELETED)))) {