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

    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 280c4a41..6048d22e 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] );
 


_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to