diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2021-09-01 15:25:18 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2021-09-01 15:25:18 +0100 |
commit | ce15be78166725f6f802231dc8e0c0e4ec615009 (patch) | |
tree | f79cc6f6c91d546621c51797b37de33e5cc1c138 /src | |
parent | 44226149c4c467c9d109ead4b3c7bbe15b634997 (diff) |
Generalise "send failed" message in smtp transport
Diffstat (limited to 'src')
-rw-r--r-- | src/src/transports/smtp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c index a121e34ae..7bb1249cc 100644 --- a/src/src/transports/smtp.c +++ b/src/src/transports/smtp.c @@ -3079,7 +3079,7 @@ return OK; SEND_FAILED: code = '4'; - message = US string_sprintf("send() to %s [%s] failed: %s", + message = US string_sprintf("smtp send to %s [%s] failed: %s", sx->conn_args.host->name, sx->conn_args.host->address, strerror(errno)); sx->send_quit = FALSE; yield = DEFER; @@ -4400,7 +4400,7 @@ if (!sx->ok) { save_errno = errno; code = '4'; - message = string_sprintf("send() to %s [%s] failed: %s", + message = string_sprintf("smtp send to %s [%s] failed: %s", host->name, host->address, message ? message : US strerror(save_errno)); sx->send_quit = FALSE; goto FAILED; @@ -4584,7 +4584,7 @@ if (sx->completed_addr && sx->ok && sx->send_quit) if (sx->send_rset) if (! (sx->ok = smtp_write_command(sx, SCMD_FLUSH, "RSET\r\n") >= 0)) { - msg = US string_sprintf("send() to %s [%s] failed: %s", host->name, + msg = US string_sprintf("smtp send to %s [%s] failed: %s", host->name, host->address, strerror(errno)); sx->send_quit = FALSE; } |