Procházet zdrojové kódy

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

Oswald Buddenhagen před 19 roky
rodič
revize
21abb22c98
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/sync.c

+ 1 - 1
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)))) {