From c009354c02d8c51b2a0975b9624bc4dbb31fde29 Mon Sep 17 00:00:00 2001 From: Nathan Ollerenshaw Date: Fri, 29 Jun 2018 14:32:02 -0700 Subject: [PATCH] Removed check for single '@' in address. --- address.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/address.go b/address.go index 2a792ac..5cf93d8 100644 --- a/address.go +++ b/address.go @@ -3,17 +3,9 @@ package smtpd import ( "fmt" "net/mail" - "strings" ) func parseAddress(src string) (string, error) { - - // Mailbox specifications as per RFC5321 must have a local part and a - // domain part separated by '@' - if strings.Count(src, "@") != 1 { - return "", fmt.Errorf("malformed e-mail address: %s", src) - } - // While a RFC5321 mailbox specification is not the same as an RFC5322 // email address specification, it is better to accept that format and // parse it down to the actual address, as there are a lot of badly