mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:44:35 +03:00
improve message parsing: allow bare carriage return (unless in pedantic mode), allow empty header, and no longer treat a message with only headers as a message with only a body
This commit is contained in:
@ -162,7 +162,7 @@ func queueDSN(log *mlog.Log, m Msg, remoteMTA dsn.NameIP, secodeOpt, errmsg stri
|
||||
}
|
||||
}()
|
||||
|
||||
msgWriter := &message.Writer{Writer: msgFile}
|
||||
msgWriter := message.NewWriter(msgFile)
|
||||
if _, err := msgWriter.Write(msgData); err != nil {
|
||||
qlog("writing dsn message", err)
|
||||
return
|
||||
|
Reference in New Issue
Block a user