Git 2.22-rc3
[gitweb.git] / git-send-email.perl
index 62c8f91d264f1edfeb09cc0d0d6eafe29c3e47a7..24859a7bc37b05909cf16554c102cadc842c13ff 100755 (executable)
@@ -1872,7 +1872,7 @@ sub apply_transfer_encoding {
        $message = MIME::Base64::decode($message)
                if ($from eq 'base64');
 
-       $to = ($message =~ /.{999,}/) ? 'quoted-printable' : '8bit'
+       $to = ($message =~ /(?:.{999,}|\r)/) ? 'quoted-printable' : '8bit'
                if $to eq 'auto';
 
        die __("cannot send message as 7bit")