[
{
"header": "<1234@local.machine.example>\n",
"expected": [
"1234@local.machine.example"
]
},
{
"header": "<1234@local.machine.example> <3456@example.net>\n",
"expected": [
"1234@local.machine.example",
"3456@example.net"
]
},
{
"header": "<1234@local.machine.example>\n <3456@example.net> \n",
"expected": [
"1234@local.machine.example",
"3456@example.net"
]
},
{
"header": "<1234@local.machine.example>\n\n <3456@example.net>\n",
"expected": [
"1234@local.machine.example"
]
},
{
"header": " <testabcd.1234@silly.test> \n",
"expected": [
"testabcd.1234@silly.test"
]
},
{
"header": "<5678.21-Nov-1997@example.com>\n",
"expected": [
"5678.21-Nov-1997@example.com"
]
},
{
"header": "<1234 @ local(blah) .machine .example>\n",
"expected": [
"1234 @ local(blah) .machine .example"
]
},
{
"header": "<>\n",
"expected": null
},
{
"header": "malformed@id.machine.example\n",
"expected": [
"malformed@id.machine.example"
]
},
{
"header": " malformed2@id.machine.example \t \n",
"expected": [
"malformed2@id.machine.example"
]
},
{
"header": " m \n",
"expected": [
"m"
]
},
{
"header": "<a<b>c>\n",
"expected": [
"a<b"
]
},
{
"header": "foo <bar\n",
"expected": [
"foo"
]
},
{
"header": "<bar\n",
"expected": null
},
{
"header": "foo <> bar\n",
"expected": [
"foo <> bar"
]
},
{
"header": "a>b\n",
"expected": [
"a>b"
]
},
{
"header": ">\n",
"expected": null
},
{
"header": "<<a>>\n",
"expected": [
"a"
]
},
{
"header": "< a b >\n",
"expected": [
"a b"
]
},
{
"header": "<a\r\n b>\r\n",
"expected": [
"a\r\n b"
]
},
{
"header": "<a@b>",
"expected": [
"a@b"
]
},
{
"header": " <a@b> <c@d>",
"expected": [
"a@b",
"c@d"
]
},
{
"header": "<a@b>,<c@d>\n",
"expected": [
"a@b",
"c@d"
]
},
{
"header": "x <a@b> y\n",
"expected": [
"a@b"
]
},
{
"header": "<>\n <x@y>\n",
"expected": [
"x@y"
]
},
{
"header": "<a@b>\n\n<c@d>\n",
"expected": [
"a@b"
]
},
{
"header": "(comment) <a@b> (other)\n",
"expected": [
"a@b"
]
},
{
"header": "\n",
"expected": null
},
{
"header": "",
"expected": null
},
{
"header": " \r\n",
"expected": null
},
{
"header": "< \r\n >\n",
"expected": null
},
{
"header": "<aé@b>\n",
"expected": [
"aé@b"
]
},
{
"header": "<a@b\n",
"expected": null
},
{
"header": "a@b <c\n <d@e>\n",
"expected": [
"c\n <d@e"
]
}
]