commit 7c466fc3e7d0c11577c0bf471e6e40ff5c16e192
Author: Oswald Buddenhagen <o...@users.sf.net>
Date:   Thu Mar 30 19:44:54 2017 +0200

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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to