isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit 21abb22c988d0442faf3ce350c0f984ed7d45030
parent 8a748d046db62924d519623c40d4c6f93944b471
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Sat, 27 May 2006 12:43:03 +0000

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

Diffstat:
Msrc/sync.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)))) {