From 12d460e4811ddb72b4a9182e9bb8468e737555c3 Mon Sep 17 00:00:00 2001 From: Craig Date: Fri, 12 Feb 2016 01:35:10 +0000 Subject: [PATCH] fix error messages --- protocol.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/protocol.go b/protocol.go index 6dfea11..e199391 100644 --- a/protocol.go +++ b/protocol.go @@ -167,17 +167,17 @@ func (session *session) handleEHLO(cmd command) { func (session *session) handleMAIL(cmd command) { if len(cmd.params) != 2 || strings.ToUpper(cmd.params[0]) != "FROM" { - session.reply(502, "Syntax error") + session.reply(502, "Invalid syntax.") return } if session.peer.HeloName == "" { - session.reply(502, "Please introduce yourself first") + session.reply(502, "Please introduce yourself first.") return } if !session.tls && session.server.ForceTLS { - session.reply(502, "Please turn on TLS by issuing a STARTTLS command") + session.reply(502, "Please turn on TLS by issuing a STARTTLS command.") return } @@ -213,7 +213,7 @@ func (session *session) handleMAIL(cmd command) { func (session *session) handleRCPT(cmd command) { if len(cmd.params) != 2 || strings.ToUpper(cmd.params[0]) != "TO" { - session.reply(502, "Syntax error") + session.reply(502, "Invalid syntax.") return }