Explorar el Código

use post-sync "seen" flag to determine expirability

otherwise it wouldn't be idempotent.
Oswald Buddenhagen hace 11 años
padre
commit
9e186ae88b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/sync.c

+ 1 - 1
src/sync.c

@@ -1380,7 +1380,7 @@ box_loaded( int sts, void *aux )
 					if (nflags & F_FLAGGED) {
 						/* Flagged messages are always kept. */
 						todel--;
-					} else if ((tmsg->flags & F_SEEN) &&
+					} else if ((nflags & F_SEEN) &&
 					         (todel > 0 ||
 					          ((srec->status & (S_EXPIRE|S_EXPIRED)) == (S_EXPIRE|S_EXPIRED)) ||
 					          ((srec->status & (S_EXPIRE|S_EXPIRED)) && (tmsg->flags & F_DELETED)))) {