]> Kevux Git Server - rit/commit
send-email: pass smtp hostname and port to Authen::SASL
authorAditya Garg <gargaditya08@live.com>
Thu, 5 Mar 2026 17:01:15 +0000 (17:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Mar 2026 19:28:45 +0000 (11:28 -0800)
commitb10fb23d52425644b8c3bb9b7277cb3328a73c16
treef0b4222fabfaa88645d694d53568e8953c5a39fb
parent795c338de725e13bd361214c6b768019fc45a2c1
send-email: pass smtp hostname and port to Authen::SASL

Starting from version 2.2000, Authen::SASL supports passing the SMTP
server hostname and port to the OAUTHBEARER string passed via SMTP AUTH.
Add support for the same in git-send-email.

It's safe to add the new parameters unconditionally as older versions of
Authen::SASL will simply ignore them without any error. Something
similar is already being done for the authname parameter, which is not
supported by every authentication mechanism. This can be understood as
declaring a variable but not using at all.

Link: https://metacpan.org/pod/Authen::SASL::Perl::OAUTHBEARER
Signed-off-by: Aditya Garg <gargaditya08@live.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl