GODT-1556: Add unit test for in-reply-to header without references.

This commit is contained in:
Romain LE JEUNE
2022-11-30 16:32:57 +01:00
parent f3cc19b09c
commit 842c9c8ecd
2 changed files with 36 additions and 0 deletions

View File

@ -605,6 +605,16 @@ func TestParseMessageReferencesComma(t *testing.T) {
})
}
func TestParseMessageReplyToWithoutReferences(t *testing.T) {
f := getFileReader("reply-to_no_references.eml")
m, err := Parse(f)
require.NoError(t, err)
assert.ElementsMatch(t, m.References, []string{})
assert.Equal(t, m.InReplyTo, "OEUOEUEOUOUOU770B9QNZWFVGM@protonmail.ch")
}
func TestParseIcsAttachment(t *testing.T) {
f := getFileReader("ics_attachment.eml")