don't emit redundant flag updates for re-newed messages

This commit is contained in:
Oswald Buddenhagen 2017-03-30 19:44:54 +02:00
parent 1ea2e69aa7
commit 7c466fc3e7

View File

@ -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 );