7 "github.com/mjl-/mox/smtp"
10func LocalserveNeedsError(lp smtp.Localpart) (code int, timeout bool) {
12 if strings.HasSuffix(s, "temperror") {
13 return smtp.C451LocalErr, false
14 } else if strings.HasSuffix(s, "permerror") {
15 return smtp.C550MailboxUnavail, false
16 } else if strings.HasSuffix(s, "timeout") {
23 v, err := strconv.ParseInt(s, 10, 32)
27 if v < 400 || v > 600 {