aboutsummaryrefslogtreecommitdiff
path: root/mta_recv.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-01-04 21:01:08 +0800
committerRunxi Yu <me@runxiyu.org>2025-01-04 21:18:00 +0800
commitc4b96658a0883d94186ce2b64305dcafaf567922 (patch)
treef7826c4b4629e489578c57e5941ba8b53fb78e85 /mta_recv.go
parentReformat files (diff)
downloadmaild-c4b96658a0883d94186ce2b64305dcafaf567922.tar.gz
maild-c4b96658a0883d94186ce2b64305dcafaf567922.tar.zst
maild-c4b96658a0883d94186ce2b64305dcafaf567922.zip
Use Open_file_at instead of Open
Diffstat (limited to '')
-rw-r--r--mta_recv.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/mta_recv.go b/mta_recv.go
index 1d2c4f3..fe6139f 100644
--- a/mta_recv.go
+++ b/mta_recv.go
@@ -133,7 +133,7 @@ func handle_incoming_server_connection(reader *bufio.Reader, writer *bufio.Write
if err == nil {
_, _ = writer.WriteString("250 2.0.0 Ok: Accepted\r\n")
} else {
- _, _ = writer.WriteString("500 2.0.0 Funderscore\r\n")
+ _, _ = writer.WriteString("500 2.0.0 Error: "+err.Error()+"\r\n")
}
_ = writer.Flush()
server_state = server_state_helo