Skip to content

Commit 60b1b89

Browse files
committed
Merge branch 'hs/send-email-transferencoding-fix' into pu
Since "git send-email" learned to take 'auto' as the value for the transfer-encoding, it by mistake stopped honoring the values given to the configuration variables sendemail.transferencoding and/or sendemail.<ident>.transferencoding. Attempt to correct this. Not quite. cf. <[email protected]> * hs/send-email-transferencoding-fix: send-email: honor transferencoding config option again
2 parents 07ca07b + 0411c2d commit 60b1b89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

git-send-email.perl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ sub do_edit {
239239
my (@suppress_cc);
240240
my ($auto_8bit_encoding);
241241
my ($compose_encoding);
242-
my $target_xfer_encoding = 'auto';
242+
my ($target_xfer_encoding);
243243

244244
my ($debug_net_smtp) = 0; # Net::SMTP, see send_message()
245245

@@ -446,6 +446,8 @@ sub read_config {
446446
$smtp_encryption = 'ssl';
447447
}
448448
}
449+
450+
$target_xfer_encoding = 'auto' unless (defined $target_xfer_encoding);
449451
}
450452

451453
# read configuration from [sendemail "$identity"], fall back on [sendemail]

0 commit comments

Comments
 (0)