commit 7c466fc3e7d0c11577c0bf471e6e40ff5c16e192
parent 1ea2e69aa7be3f7b8169ded9068d6c8854391158
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date: Thu, 30 Mar 2017 19:44:54 +0200
don't emit redundant flag updates for re-newed messages
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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 );