isync

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

commit ef43021f2639e74c6fa9f89761c737b93b727411
parent fe4e478e95a3474241a5d7fea594302a3a5a52df
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Fri, 18 Feb 2022 18:48:06 +0100

don't pointlessly load near-side new messages when expiring

we don't count them towards the total anyway (as they are unpaired).

Diffstat:
Msrc/sync.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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] );