commit 38e7b4db2243e2bff7a6ae6ce2834acb0ba60286
Author: Oswald Buddenhagen <o...@users.sf.net>
Date:   Sun Jun 14 13:16:07 2020 +0200

    Maildir: fix setting flags on messages without ":2," part
    
    this is mostly hypothetical, as all messages i've encountered actually
    have it even if no flags are set on them.

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

diff --git a/src/drv_maildir.c b/src/drv_maildir.c
index 3e67baf..c5c723c 100644
--- a/src/drv_maildir.c
+++ b/src/drv_maildir.c
@@ -1716,7 +1716,7 @@ maildir_set_msg_flags( store_t *gctx, message_t *gmsg, 
uint uid ATTR_UNUSED, int
                        }
                        tl = ol + 3 + fl;
                } else {
-                       tl = ol + maildir_make_flags( conf->info_delimiter, 
msg->gen.flags, nbuf + bl + ol );
+                       tl = ol + maildir_make_flags( conf->info_delimiter, 
(uchar)add, nbuf + bl + ol );
                }
                if (!rename( buf, nbuf ))
                        break;


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

Reply via email to