1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-06-15 00:05:15 +02:00

Use consistent POP3 response casing

This commit is contained in:
Ralph Slooten
2024-06-19 15:59:55 +12:00
parent b7ad94211b
commit 710f093561

View File

@ -144,7 +144,7 @@ func handleClient(conn net.Conn) {
switch cmd { switch cmd {
case "CAPA": case "CAPA":
// List our capabilities per RFC2449 // List our capabilities per RFC2449
sendResponse(conn, "+OK Capability list follows") sendResponse(conn, "+OK capability list follows")
sendResponse(conn, "TOP") sendResponse(conn, "TOP")
sendResponse(conn, "USER") sendResponse(conn, "USER")
sendResponse(conn, "UIDL") sendResponse(conn, "UIDL")
@ -195,7 +195,7 @@ func handleClient(conn net.Conn) {
sendResponse(conn, "-ERR user not authenticated") sendResponse(conn, "-ERR user not authenticated")
} }
case "QUIT": case "QUIT":
sendResponse(conn, "+OK Goodbye") sendResponse(conn, "+OK goodbye")
state = UPDATE state = UPDATE
return return
default: default:
@ -289,7 +289,7 @@ func handleTransactionCommand(conn net.Conn, cmd string, args []string, messages
return return
} }
sendResponse(conn, "+OK Top of message follows") sendResponse(conn, "+OK top of message follows")
sendData(conn, headers+"\r\n") sendData(conn, headers+"\r\n")
sendData(conn, body) sendData(conn, body)
sendResponse(conn, ".") sendResponse(conn, ".")