func doAccept(convo *smtpd.Conn, c *Context, transid string) { msg := c.withprops["message"] switch { case msg != "": if transid != "" { msg += "\nAccepted with ID " + transid } convo.AcceptMsg(msg) case transid != "": convo.AcceptData(transid) default: convo.Accept() } }