isync

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

commit e205eb62f5f23b928520575f2a08330fc14666db
parent c7d938f96525a5010843765465b9bfa2dcb0f2e5
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Mon, 30 Jan 2006 13:01:35 +0000

remove superfluous temporary rflags from sync_boxes

Diffstat:
Msrc/sync.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/sync.c b/src/sync.c @@ -669,7 +669,7 @@ sync_boxes( store_t *ctx[], const char *names[], channel_conf_t *chan ) for (t = 0; t < 2; t++) { int unex; - unsigned char sflags, aflags, dflags, rflags; + unsigned char sflags, aflags, dflags; /* excludes (push) c.3) d.2) d.3) d.4) / (pull) b.3) d.7) d.8) d.9) */ if (!srec->uid[t]) { @@ -725,13 +725,12 @@ sync_boxes( store_t *ctx[], const char *names[], channel_conf_t *chan ) aflags &= F_DELETED; dflags = 0; } - rflags = (nflags | aflags) & ~dflags; switch ((aflags | dflags) ? driver[t]->set_flags( ctx[t], srec->msg[t], srec->uid[t], aflags, dflags ) : DRV_OK) { case DRV_STORE_BAD: ret = SYNC_BAD(t); goto finish; case DRV_BOX_BAD: ret = SYNC_FAIL; goto finish; default: /* ok */ break; case DRV_OK: - nflags = rflags; + nflags = (nflags | aflags) & ~dflags; if (unex) { debug( "unexpiring pair(%d,%d)\n", srec->uid[M], srec->uid[S] ); /* log last, so deletion can't be misinterpreted! */