default to CRLF output in copy_msg_convert()

if we have nothing to go on, assume canonical line endings.
This commit is contained in:
Oswald Buddenhagen 2022-05-17 13:16:34 +02:00
parent 6dc9312dbc
commit bfcc2d7d19

View File

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