fix delivery from/to smtp addresses with double quotes

found while adding tests for smtp and imap for address with empty double (double
quoted) localparts.
This commit is contained in:
Mechiel Lukkien
2023-06-03 15:29:18 +02:00
parent 77d78191f8
commit 5a4f35ad5f
5 changed files with 39 additions and 1 deletions

View File

@ -336,6 +336,7 @@ func (p *parser) xlocalpart() smtp.Localpart {
// ../rfc/5321:2324
func (p *parser) xquotedString(islocalpart bool) string {
p.xtake(`"`)
var s string
var esc bool
for {