From 7c466fc3e7d0c11577c0bf471e6e40ff5c16e192 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Thu, 30 Mar 2017 19:44:54 +0200 Subject: [PATCH] don't emit redundant flag updates for re-newed messages --- src/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync.c b/src/sync.c index a6584e0..59fb04e 100644 --- a/src/sync.c +++ b/src/sync.c @@ -1610,7 +1610,7 @@ box_loaded( int sts, void *aux ) debug( " -> pair(%d,%d) created\n", srec->uid[M], srec->uid[S] ); } if ((tmsg->flags & F_FLAGGED) || tmsg->size <= svars->chan->stores[t]->max_size) { - if (tmsg->flags) { + if (tmsg->flags != srec->flags) { srec->flags = tmsg->flags; jFprintf( svars, "* %d %d %u\n", srec->uid[M], srec->uid[S], srec->flags ); debug( " -> updated flags to %u\n", tmsg->flags );