Browse Source

use post-sync "seen" flag to determine expirability

otherwise it wouldn't be idempotent.
wip/maildir-uid-dupes-test
Oswald Buddenhagen 11 years ago
parent
commit
9e186ae88b
  1. 2
      src/sync.c

2
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)))) {

Loading…
Cancel
Save