isync

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

commit 58db1d05ac47a60bfb698286d859e611f13b07c9
parent 905ded175fbd98280d91b8f3c3d3ad15fff6730b
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Thu,  2 Feb 2006 11:12:30 +0000

cosmetics: move around variable declarations and remove obsolete comment

Diffstat:
Msrc/sync.c | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/sync.c b/src/sync.c @@ -188,7 +188,7 @@ sync_boxes( store_t *ctx[], const char *names[], channel_conf_t *chan ) int opts[2]; int nom, nos, del[2], ex[2]; int muidval, suidval, smaxxuid, maxuid[2], minwuid, maxwuid; - int t1, t2, t3, t; + int t1, t2, t3, t, uid, nmsgs; int lfd, ret, line, sline, todel, delt, *mexcs, nmexcs, rmexcs; unsigned char nflags; msg_data_t msgdata; @@ -601,8 +601,6 @@ sync_boxes( store_t *ctx[], const char *names[], channel_conf_t *chan ) debug( "synchronizing new entries\n" ); osrecadd = srecadd; for (t = 0; t < 2; t++) { - int nmsgs, uid; - for (nmsgs = 0, tmsg = ctx[1-t]->msgs; tmsg; tmsg = tmsg->next) if (tmsg->srec ? tmsg->srec->uid[t] < 0 && (chan->ops[t] & OP_RENEW) : (chan->ops[t] & OP_NEW)) { debug( "new message %d on %s\n", tmsg->uid, str_ms[1-t] ); @@ -814,9 +812,6 @@ sync_boxes( store_t *ctx[], const char *names[], channel_conf_t *chan ) } } - /* Doing CLOSE here instead of EXPUNGE above saves network traffic. - But it costs more server power for single-file formats. And it - makes disk-full/quota-exceeded more probable. */ for (t = 0; t < 2; t++) { ex[t] = 0; if (chan->ops[t] & OP_EXPUNGE) {