public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] send-email: pass smtp hostname and port to Authen::SASL
@ 2026-03-05 12:06 Aditya Garg
  2026-03-05 14:44 ` Junio C Hamano
  2026-03-05 17:01 ` [PATCH v2] " Aditya Garg
  0 siblings, 2 replies; 6+ messages in thread
From: Aditya Garg @ 2026-03-05 12:06 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

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.

Link: https://metacpan.org/pod/Authen::SASL::Perl::OAUTHBEARER

Signed-off-by: Aditya Garg <gargaditya08@live.com>
---
 git-send-email.perl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/git-send-email.perl b/git-send-email.perl
index eed5420882..0ac4d634e8 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -1474,6 +1474,8 @@ sub smtp_auth_maybe {
 						user     => $cred->{'username'},
 						pass     => $cred->{'password'},
 						authname => $cred->{'username'},
+						host     => $smtp_server,
+						(defined $smtp_server_port ? (port => $smtp_server_port) : ()),
 					}
 				);
 				$result = $smtp->auth($sasl);
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-03-05 17:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05 12:06 [PATCH] send-email: pass smtp hostname and port to Authen::SASL Aditya Garg
2026-03-05 14:44 ` Junio C Hamano
2026-03-05 15:14   ` Aditya Garg
2026-03-05 16:24     ` Junio C Hamano
2026-03-05 16:54       ` Aditya Garg
2026-03-05 17:01 ` [PATCH v2] " Aditya Garg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox