aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-01-04 20:45:09 +0800
committerRunxi Yu <me@runxiyu.org>2025-01-04 20:45:09 +0800
commitbfdf324ca6043be03a948eb17b9e691769c06648 (patch)
tree84f4841d49359ed0515a770b211a6b90b1ca7f9a
parentDeliver to inbox (diff)
downloadmaild-bfdf324ca6043be03a948eb17b9e691769c06648.tar.gz
maild-bfdf324ca6043be03a948eb17b9e691769c06648.tar.zst
maild-bfdf324ca6043be03a948eb17b9e691769c06648.zip
Implement NOOP
-rw-r--r--mta_recv.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/mta_recv.go b/mta_recv.go
index c77c46d..1d2c4f3 100644
--- a/mta_recv.go
+++ b/mta_recv.go
@@ -141,6 +141,9 @@ func handle_incoming_server_connection(reader *bufio.Reader, writer *bufio.Write
_, _ = writer.WriteString("221 2.0.0 Bye\r\n")
_ = writer.Flush()
return nil
+ case "NOOP":
+ _, _ = writer.WriteString("250 2.0.0 Ok\r\n")
+ _ = writer.Flush()
case "RSET":
if server_state != server_state_begin {
server_state = server_state_helo