mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 05:06:51 +00:00
GODT-2142: Also permit split by comma in References header
This commit is contained in:
@ -587,7 +587,22 @@ func TestParseMessageReferences(t *testing.T) {
|
||||
m, err := Parse(f)
|
||||
require.NoError(t, err)
|
||||
|
||||
assert.Len(t, m.References, 2)
|
||||
assert.ElementsMatch(t, m.References, []string{
|
||||
`PMZV4VZMRM@something.com`,
|
||||
`OEUOEUEOUOUOU770B9QNZWFVGM@protonmail.ch`,
|
||||
})
|
||||
}
|
||||
|
||||
func TestParseMessageReferencesComma(t *testing.T) {
|
||||
f := getFileReader("references-comma.eml")
|
||||
|
||||
m, err := Parse(f)
|
||||
require.NoError(t, err)
|
||||
|
||||
assert.ElementsMatch(t, m.References, []string{
|
||||
`PMZV4VZMRM@something.com`,
|
||||
`OEUOEUEOUOUOU770B9QNZWFVGM@protonmail.ch`,
|
||||
})
|
||||
}
|
||||
|
||||
func TestParsePanic(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user