seen messages are eligible for expiration even if they are recent in the

mailbox.
This commit is contained in:
Oswald Buddenhagen 2006-05-27 12:43:03 +00:00
parent 8a748d046d
commit 21abb22c98

View File

@ -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_DELETED) || (srec->status & (S_EXPIRE|S_EXPIRED))) {
if (nflags & F_FLAGGED) if (nflags & F_FLAGGED)
todel--; todel--;
else if (!(tmsg->status & M_RECENT) && else if ((!(tmsg->status & M_RECENT) || (tmsg->flags & F_SEEN)) &&
(todel > 0 || (todel > 0 ||
((srec->status & (S_EXPIRE|S_EXPIRED)) == (S_EXPIRE|S_EXPIRED)) || ((srec->status & (S_EXPIRE|S_EXPIRED)) == (S_EXPIRE|S_EXPIRED)) ||
((srec->status & (S_EXPIRE|S_EXPIRED)) && (tmsg->flags & F_DELETED)))) { ((srec->status & (S_EXPIRE|S_EXPIRED)) && (tmsg->flags & F_DELETED)))) {