isync

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

commit b10fd0c21c2b80b99b41343dcc27b53db884ca0c
parent a893cba483e039f1863a031bec7e920e345d05ea
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Sat,  2 Nov 2013 15:04:03 +0100

remove assumption about value of M constant

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

diff --git a/src/sync.c b/src/sync.c @@ -1275,7 +1275,7 @@ box_loaded( int sts, void *aux ) /* a) & b.3) / c.3) */ if (svars->chan->ops[t] & OP_FLAGS) { sflags = srec->msg[1-t]->flags; - if ((srec->status & (S_EXPIRE|S_EXPIRED)) && !t) + if ((srec->status & (S_EXPIRE|S_EXPIRED)) && (t == M)) sflags &= ~F_DELETED; srec->aflags[t] = sflags & ~srec->flags; srec->dflags[t] = ~sflags & srec->flags;