commit c1feba585a0bc80ccf9ab77e8f4e6eb981bb01f0
Author: Oswald Buddenhagen <o...@users.sf.net>
Date:   Mon Apr 4 21:53:02 2022 +0200

    don't clobber message status when upgrading placeholders
    
    we'd reset the possibly set M_RECENT flag, which would lead to
    pointless maildir rescans.
    
    amends 70bad661.

 src/sync.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sync.c b/src/sync.c
index eb59e5d4..db6b72c2 100644
--- a/src/sync.c
+++ b/src/sync.c
@@ -1770,7 +1770,7 @@ box_loaded( int sts, message_t *msgs, int total_msgs, int 
recent_msgs, void *aux
                                } else {
                                        // Pretend that the source message has 
the adjusted flags of the dummy.
                                        tmsg->flags = srec->pflags;
-                                       tmsg->status = M_FLAGS;
+                                       tmsg->status |= M_FLAGS;
                                        any_new[t] = 1;
                                }
                        }


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

Reply via email to