Browse Source

"reformat" S_EXP_S setting logic for understandability.

wip/maildir-uid-dupes-test
Oswald Buddenhagen 19 years ago
parent
commit
61dfbea617
  1. 12
      src/sync.c

12
src/sync.c

@ -495,11 +495,15 @@ sync_boxes( store_t *ctx[], const char *names[], channel_conf_t *chan )
if (srec->status & S_DEAD) if (srec->status & S_DEAD)
continue; continue;
if (srec->status & S_EXPIRED) { if (srec->status & S_EXPIRED) {
if (!srec->uid[S] || ((ctx[S]->opts & OPEN_OLD) && !findmsg( ctx[S], srec->uid[S], &nsmsg, "slave" ))) if (!srec->uid[S] || ((ctx[S]->opts & OPEN_OLD) && !findmsg( ctx[S], srec->uid[S], &nsmsg, "slave" ))) {
srec->status |= S_EXP_S; srec->status |= S_EXP_S;
else if (minwuid > srec->uid[M]) continue;
minwuid = srec->uid[M]; }
} else if (smaxxuid < srec->uid[S] && minwuid > srec->uid[M]) } else {
if (smaxxuid >= srec->uid[S])
continue;
}
if (minwuid > srec->uid[M])
minwuid = srec->uid[M]; minwuid = srec->uid[M];
} }
debug( " min non-orphaned master uid is %d\n", minwuid ); debug( " min non-orphaned master uid is %d\n", minwuid );

Loading…
Cancel
Save