Calls to newParser should use c.smtputf8

This commit is contained in:
Laurent Meunier 2024-03-31 12:33:20 +02:00
parent a0bbd13afc
commit c02328f881

View file

@ -767,7 +767,7 @@ func command(c *conn) {
c.cmd = cmdl
c.cmdStart = time.Now()
p := newParser(args, c.msgsmtputf8, c)
p := newParser(args, c.smtputf8, c)
fn, ok := commands[cmdl]
if !ok {
c.cmd = "(unknown)"
@ -1472,7 +1472,7 @@ func (c *conn) cmdMail(p *parser) {
}
// We now know if we have to parse the address with support for utf8.
pp := newParser(rawRevPath, c.msgsmtputf8, c)
pp := newParser(rawRevPath, c.smtputf8, c)
rpath := pp.xbareReversePath()
pp.xempty()
pp = nil