git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] [GSoC]smtp_auth_maybe: improve smtp authentication error handling logic
@ 2025-03-07 12:39 Zheng Yuting
  2025-03-07 12:39 ` [PATCH 1/1] Improve SMTP " Zheng Yuting
  0 siblings, 1 reply; 4+ messages in thread
From: Zheng Yuting @ 2025-03-07 12:39 UTC (permalink / raw)
  To: git; +Cc: Zheng Yuting

This patch enhances error handling in the smtp_auth_maybe() function by
distinguishing between temporary errors and permanent authentication failures.

- For temporary errors (e.g., timeout, network issues, etc.), the function
logs a warning and returns 1, allowing retries.

- For permanent errors (e.g., invalid credentials), it returns 0.

Additionally, it separates handling for SASL and plain authentication
to prevent rejecting valid credentials due to non-credential errors,
improving robustness.

Zheng Yuting (1):
  improve smtp authentication error handling logic

 git-send-email.perl | 30 ++++++++++++++++++++++--------
 1 file changed, 22 insertions(+), 8 deletions(-)

--
2.49.0.rc0.57.gdb91954e18

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

end of thread, other threads:[~2025-03-11  8:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-07 12:39 [PATCH 0/1] [GSoC]smtp_auth_maybe: improve smtp authentication error handling logic Zheng Yuting
2025-03-07 12:39 ` [PATCH 1/1] Improve SMTP " Zheng Yuting
2025-03-10 22:14   ` Karthik Nayak
2025-03-11  8:03     ` Yuting Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).