mirror of
https://github.com/mjl-/mox.git
synced 2025-07-13 08:54:38 +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:
@ -45,7 +45,7 @@ func TestMailbox(t *testing.T) {
|
||||
t.Fatalf("creating temp msg file: %s", err)
|
||||
}
|
||||
defer msgFile.Close()
|
||||
msgWriter := &message.Writer{Writer: msgFile}
|
||||
msgWriter := message.NewWriter(msgFile)
|
||||
if _, err := msgWriter.Write([]byte(" message")); err != nil {
|
||||
t.Fatalf("writing to temp message: %s", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user