mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 12:24:38 +03:00
smtpserver: log an error message at debug level when we cannot parse a message for the smtputf8 check
instead of not logging any message. this should make it easier to debug. based on delivery issue due to smtputf8 seen by wneessen.
This commit is contained in:
@ -1853,6 +1853,9 @@ func (c *conn) cmdData(p *parser) {
|
||||
c.msgsmtputf8 = c.isSMTPUTF8Required(part)
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
c.log.Debugx("parsing message for smtputf8 check", err)
|
||||
}
|
||||
if c.smtputf8 != c.msgsmtputf8 {
|
||||
c.log.Debug("smtputf8 flag changed", slog.Bool("smtputf8", c.smtputf8), slog.Bool("msgsmtputf8", c.msgsmtputf8))
|
||||
}
|
||||
|
Reference in New Issue
Block a user