remove redundant condition
the 'pending' and 'skipped' sync record states are mutually exclusive
with having a complementary message, so there is no point in testing it
explicitly.
amends bd5fb6ff
.
This commit is contained in:
parent
395f802500
commit
4aaada18e9
|
@ -1588,8 +1588,7 @@ box_loaded( int sts, message_t *msgs, int total_msgs, int recent_msgs, void *aux
|
||||||
// in case of interruption - in particular skipping big messages would otherwise
|
// in case of interruption - in particular skipping big messages would otherwise
|
||||||
// up the limit too early.
|
// up the limit too early.
|
||||||
srec = tmsg->srec;
|
srec = tmsg->srec;
|
||||||
if (srec ? !srec->uid[t] &&
|
if (srec ? (((srec->status & S_PENDING) && (svars->chan->ops[t] & OP_NEW)) ||
|
||||||
(((srec->status & S_PENDING) && (svars->chan->ops[t] & OP_NEW)) ||
|
|
||||||
((srec->status & S_SKIPPED) && (svars->chan->ops[t] & OP_RENEW)))
|
((srec->status & S_SKIPPED) && (svars->chan->ops[t] & OP_RENEW)))
|
||||||
: svars->newmaxuid[1-t] < tmsg->uid && (svars->chan->ops[t] & OP_NEW)) {
|
: svars->newmaxuid[1-t] < tmsg->uid && (svars->chan->ops[t] & OP_NEW)) {
|
||||||
debug( "new message %u on %s\n", tmsg->uid, str_fn[1-t] );
|
debug( "new message %u on %s\n", tmsg->uid, str_fn[1-t] );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user