This v4 patch series includes two improvements: 1. Unified error capture: Consolidate exception handling within a single eval block by introducing local variables to store results and error states, thereby streamlining code structure and enabling future extensibility. 2. Status code processing optimization: After catching the authentication exception, parse the three-digit status code in the error message, For temporary errors (4yz), only print warnings and return success, while for permanent errors (5xx), return failure, Unrecognized status codes are treated as permanent errors by default. Zheng Yuting (2): Unify capture of SMTP errors Error handling for SMTP status codes git-send-email.perl | 62 ++++++++++++++++++++++++++++++++------------- 1 file changed, 45 insertions(+), 17 deletions(-) -- 2.48.1