send-email: improve error capture and status code handling
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v9 Latest2 patches 0 repliesNew
- v82 patches 1 replySuperseded
- v72 patches 1 replySuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v6 | 2 patches | 1 reply | Superseded | |
| v5 | 2 patches | 1 reply | Superseded |
Patches in v9 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | send-email: capture errors in an eval {} blockgit-send-email.perl | +27 | 0 replies | |
| 2/2 | send-email: finer-grained SMTP error handlinggit-send-email.perl | +29 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v9 yet.
Cover letter [GSoC PATCH v9 0/2] send-email: improve error capture and status code handling
This patch series improves SMTP authentication error handling.
Auth relied solely on return values without capturing exceptions, misjudging non-credential errors as authentication failures.
Patch v9 1/2 wraps the auth process in an eval {} block to catch all exceptions, adds var error for future handling, and var result to return auth state.
Patch v9 2/2 introduces finer-grained SMTP error handling by extracting status codes per RFC 5321. For 4yz (transient) errors, return 1 and allow retries; for 5yz (permanent) errors, return 0. Unrecognized or uncaught status codes are treated as transient errors (return 1). If no error is present and no result is defined, return 1 as a transient error; otherwise, return the authentication result.
Zheng Yuting (2):
send-email: capture errors in an eval {} block
send-email: finer-grained SMTP error handling
git-send-email.perl | 69 +++++++++++++++++++++++++++++++++++---------- 1 file changed, 54 insertions(+), 15 deletions(-)
--
2.49.0