mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 13:04:38 +03:00
for imap/smtp syntax errors, only echo the remaining buffer if the connection is authenticated
This commit is contained in:
@ -669,7 +669,7 @@ func command(c *conn) {
|
||||
|
||||
var serr smtpError
|
||||
if errors.As(err, &serr) {
|
||||
c.writecodeline(serr.code, serr.secode, fmt.Sprintf("%s (%s)", serr.err, mox.ReceivedID(c.cid)), serr.err)
|
||||
c.writecodeline(serr.code, serr.secode, fmt.Sprintf("%s (%s)", serr.errmsg, mox.ReceivedID(c.cid)), serr.err)
|
||||
if serr.printStack {
|
||||
debug.PrintStack()
|
||||
}
|
||||
|
Reference in New Issue
Block a user