commit bfcc2d7d19acda0eb524be5037ae57549c8d202f
Author: Oswald Buddenhagen <o...@users.sf.net>
Date:   Tue May 17 13:16:34 2022 +0200

    default to CRLF output in copy_msg_convert()
    
    if we have nothing to go on, assume canonical line endings.

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

diff --git a/src/sync_msg_cvt.c b/src/sync_msg_cvt.c
index 1e49cf7b..dd3b02e5 100644
--- a/src/sync_msg_cvt.c
+++ b/src/sync_msg_cvt.c
@@ -115,7 +115,7 @@ copy_msg_convert( int in_cr, int out_cr, copy_vars_t *vars )
                        }
                        break;
                }
-               app_cr = out_cr && (!in_cr || hdr_crs);
+               app_cr = out_cr && (!in_cr || hdr_crs || !lines);
                if (fix_tuid || fix_subj || fix_hdr)
                        extra += app_cr + 1;
                if (end_hdr)


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

Reply via email to