From ef43021f2639e74c6fa9f89761c737b93b727411 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 18 Feb 2022 18:48:06 +0100 Subject: [PATCH] don't pointlessly load near-side new messages when expiring we don't count them towards the total anyway (as they are unpaired). --- src/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync.c b/src/sync.c index 280c4a4..6048d22 100644 --- a/src/sync.c +++ b/src/sync.c @@ -787,7 +787,7 @@ box_opened2( sync_vars_t *svars, int t ) // but it's more natural to treat it as read-only in that case. // OP_RENEW makes sense only for legacy S_SKIPPED entries. if ((chan->ops[N] & (OP_NEW|OP_RENEW|OP_FLAGS)) && chan->max_messages) - opts[N] |= OPEN_OLD|OPEN_NEW|OPEN_FLAGS; + opts[N] |= OPEN_OLD | OPEN_FLAGS; svars->opts[F] = svars->drv[F]->prepare_load_box( ctx[F], opts[F] ); svars->opts[N] = svars->drv[N]->prepare_load_box( ctx[N], opts[N] );