cosmetics: move around variable declarations and remove obsolete comment
This commit is contained in:
parent
905ded175f
commit
58db1d05ac
|
@ -188,7 +188,7 @@ sync_boxes( store_t *ctx[], const char *names[], channel_conf_t *chan )
|
||||||
int opts[2];
|
int opts[2];
|
||||||
int nom, nos, del[2], ex[2];
|
int nom, nos, del[2], ex[2];
|
||||||
int muidval, suidval, smaxxuid, maxuid[2], minwuid, maxwuid;
|
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;
|
int lfd, ret, line, sline, todel, delt, *mexcs, nmexcs, rmexcs;
|
||||||
unsigned char nflags;
|
unsigned char nflags;
|
||||||
msg_data_t msgdata;
|
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" );
|
debug( "synchronizing new entries\n" );
|
||||||
osrecadd = srecadd;
|
osrecadd = srecadd;
|
||||||
for (t = 0; t < 2; t++) {
|
for (t = 0; t < 2; t++) {
|
||||||
int nmsgs, uid;
|
|
||||||
|
|
||||||
for (nmsgs = 0, tmsg = ctx[1-t]->msgs; tmsg; tmsg = tmsg->next)
|
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)) {
|
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] );
|
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++) {
|
for (t = 0; t < 2; t++) {
|
||||||
ex[t] = 0;
|
ex[t] = 0;
|
||||||
if (chan->ops[t] & OP_EXPUNGE) {
|
if (chan->ops[t] & OP_EXPUNGE) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user