1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-05-31 23:09:51 +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 {
case "CAPA":
// List our capabilities per RFC2449
sendResponse(conn, "+OK Capability list follows")
sendResponse(conn, "+OK capability list follows")
sendResponse(conn, "TOP")
sendResponse(conn, "USER")
sendResponse(conn, "UIDL")
@ -195,7 +195,7 @@ func handleClient(conn net.Conn) {
sendResponse(conn, "-ERR user not authenticated")
}
case "QUIT":
sendResponse(conn, "+OK Goodbye")
sendResponse(conn, "+OK goodbye")
state = UPDATE
return
default:
@ -289,7 +289,7 @@ func handleTransactionCommand(conn net.Conn, cmd string, args []string, messages
return
}
sendResponse(conn, "+OK Top of message follows")
sendResponse(conn, "+OK top of message follows")
sendData(conn, headers+"\r\n")
sendData(conn, body)
sendResponse(conn, ".")