Revision control

Copy as Markdown

Other Tools

[
{
"header": "John Doe <jdoe@machine.example>\n",
"expected": {
"List": [
{
"name": "John Doe",
"address": "jdoe@machine.example"
}
]
}
},
{
"header": " Mary Smith <mary@example.net>\n",
"expected": {
"List": [
{
"name": "Mary Smith",
"address": "mary@example.net"
}
]
}
},
{
"header": "\"Joe Q. Public\" <john.q.public@example.com>\n",
"expected": {
"List": [
{
"name": "Joe Q. Public",
"address": "john.q.public@example.com"
}
]
}
},
{
"header": "Mary Smith <mary@x.test>, jdoe@example.org, Who? <one@y.test>\n",
"expected": {
"List": [
{
"name": "Mary Smith",
"address": "mary@x.test"
},
{
"name": null,
"address": "jdoe@example.org"
},
{
"name": "Who?",
"address": "one@y.test"
}
]
}
},
{
"header": "<boss@nil.test>, \"Giant; \\\"Big\\\" Box\" <sysservices@example.net>\n",
"expected": {
"List": [
{
"name": null,
"address": "boss@nil.test"
},
{
"name": "Giant; \"Big\" Box",
"address": "sysservices@example.net"
}
]
}
},
{
"header": "A Group:Ed Jones <c@a.test>,joe@where.test,John <jdoe@one.test>;\n",
"expected": {
"Group": [
{
"name": "A Group",
"addresses": [
{
"name": "Ed Jones",
"address": "c@a.test"
},
{
"name": null,
"address": "joe@where.test"
},
{
"name": "John",
"address": "jdoe@one.test"
}
]
}
]
}
},
{
"header": "Undisclosed recipients:;\n",
"expected": {
"Group": [
{
"name": "Undisclosed recipients",
"addresses": []
}
]
}
},
{
"header": "\"Mary Smith: Personal Account\" <smith@home.example >\n",
"expected": {
"List": [
{
"name": "Mary Smith: Personal Account",
"address": "smith@home.example"
}
]
}
},
{
"header": "Pete(A nice \\) chap) <pete(his account)@silly.test(his host)>\n",
"expected": {
"List": [
{
"name": "Pete (A nice ) chap his account his host)",
"address": "pete@silly.test"
}
]
}
},
{
"header": "Pete(A nice \n \\\n ) chap) <pete(his\n account)@silly\n .test(his host)>\n",
"expected": {
"List": [
{
"name": "Pete (A nice ) chap his account his host)",
"address": "pete@silly.test"
}
]
}
},
{
"header": "A Group(Some people)\n :Chris Jones <c@(Chris's host.)public.example>,\n joe@example.org,\n John <jdoe@one.test> (my dear friend); (the end of the group)\n",
"expected": {
"Group": [
{
"name": "A Group (Some people)",
"addresses": [
{
"name": "Chris Jones (Chris's host.)",
"address": "c@public.example"
},
{
"name": null,
"address": "joe@example.org"
},
{
"name": "John (my dear friend)",
"address": "jdoe@one.test"
}
]
},
{
"name": null,
"addresses": [
{
"name": "the end of the group",
"address": null
}
]
}
]
}
},
{
"header": "(Empty list)(start)Hidden recipients :(nobody(that I know)) ;\n",
"expected": {
"Group": [
{
"name": "Hidden recipients (Empty list start)",
"addresses": [
{
"name": "nobody(that I know)",
"address": null
}
]
}
]
}
},
{
"header": "Joe Q. Public <john.q.public@example.com>\n",
"expected": {
"List": [
{
"name": "Joe Q. Public",
"address": "john.q.public@example.com"
}
]
}
},
{
"header": "Mary Smith <@node.test:mary@example.net>, , jdoe@test . example\n",
"expected": {
"List": [
{
"name": "Mary Smith",
"address": "@node.test:mary@example.net"
},
{
"name": null,
"address": "jdoe@test . example"
}
]
}
},
{
"header": "John Doe <jdoe@machine(comment). example>\n",
"expected": {
"List": [
{
"name": "John Doe (comment)",
"address": "jdoe@machine. example"
}
]
}
},
{
"header": "Mary Smith\n \n\t<mary@example.net>\n",
"expected": {
"List": [
{
"name": "Mary Smith",
"address": "mary@example.net"
}
]
}
},
{
"header": "=?US-ASCII*EN?Q?Keith_Moore?= <moore@cs.utk.edu>\n",
"expected": {
"List": [
{
"name": "Keith Moore",
"address": "moore@cs.utk.edu"
}
]
}
},
{
"header": "John =?US-ASCII*EN?Q?Doe?= <moore@cs.utk.edu>\n",
"expected": {
"List": [
{
"name": "John Doe",
"address": "moore@cs.utk.edu"
}
]
}
},
{
"header": "=?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= <keld@dkuug.dk>\n",
"expected": {
"List": [
{
"name": "Keld Jørn Simonsen",
"address": "keld@dkuug.dk"
}
]
}
},
{
"header": "=?ISO-8859-1?Q?Andr=E9?= Pirard <PIRARD@vm1.ulg.ac.be>\n",
"expected": {
"List": [
{
"name": "André Pirard",
"address": "PIRARD@vm1.ulg.ac.be"
}
]
}
},
{
"header": "=?ISO-8859-1?Q?Olle_J=E4rnefors?= <ojarnef@admin.kth.se>\n",
"expected": {
"List": [
{
"name": "Olle Järnefors",
"address": "ojarnef@admin.kth.se"
}
]
}
},
{
"header": "ietf-822@dimacs.rutgers.edu, ojarnef@admin.kth.se\n",
"expected": {
"List": [
{
"name": null,
"address": "ietf-822@dimacs.rutgers.edu"
},
{
"name": null,
"address": "ojarnef@admin.kth.se"
}
]
}
},
{
"header": "Nathaniel Borenstein <nsb@thumper.bellcore.com>\n (=?iso-8859-8?b?7eXs+SDv4SDp7Oj08A==?=)\n",
"expected": {
"List": [
{
"name": "Nathaniel Borenstein (םולש ןב ילטפנ)",
"address": "nsb@thumper.bellcore.com"
}
]
}
},
{
"header": "Greg Vaudreuil <gvaudre@NRI.Reston.VA.US>, Ned Freed\n <ned@innosoft.com>, Keith Moore <moore@cs.utk.edu>\n",
"expected": {
"List": [
{
"name": "Greg Vaudreuil",
"address": "gvaudre@NRI.Reston.VA.US"
},
{
"name": "Ned Freed",
"address": "ned@innosoft.com"
},
{
"name": "Keith Moore",
"address": "moore@cs.utk.edu"
}
]
}
},
{
"header": "=?ISO-8859-1?Q?a?= <test@test.com>\n",
"expected": {
"List": [
{
"name": "a",
"address": "test@test.com"
}
]
}
},
{
"header": "\"=?ISO-8859-1?Q?a?= b\" <test@test.com>\n",
"expected": {
"List": [
{
"name": "a b",
"address": "test@test.com"
}
]
}
},
{
"header": "=?ISO-8859-1?Q?a?= =?ISO-8859-1?Q?b?= <test@test.com>\n",
"expected": {
"List": [
{
"name": "ab",
"address": "test@test.com"
}
]
}
},
{
"header": "=?ISO-8859-1?Q?a?=\n =?ISO-8859-1?Q?b?= <test@test.com>\n",
"expected": {
"List": [
{
"name": "ab",
"address": "test@test.com"
}
]
}
},
{
"header": "=?ISO-8859-1?Q?a?= \"=?ISO-8859-2?Q?_b?=\" <test@test.com>\n",
"expected": {
"List": [
{
"name": "a b",
"address": "test@test.com"
}
]
}
},
{
"header": " <test@test.com>\n",
"expected": {
"List": [
{
"name": null,
"address": "test@test.com"
}
]
}
},
{
"header": "test@test.com\ninvalid@address.com\n",
"expected": {
"List": [
{
"name": null,
"address": "test@test.com"
}
]
}
},
{
"header": "\"=?ISO-8859-1?Q =?ISO-8859-1?Q?a?= \\\" =?ISO-8859-1?Q?b?=\" <last@address.com>\n\nbody@content.com",
"expected": {
"List": [
{
"name": "=?ISO-8859-1?Q a \" b",
"address": "last@address.com"
}
]
}
},
{
"header": "=? <name@domain.com>\n",
"expected": {
"List": [
{
"name": "=?",
"address": "name@domain.com"
}
]
}
},
{
"header": "\" James Smythe\" <james@example.com>, Friends:\n jane@example.com, =?UTF-8?Q?John_Sm=C3=AEth?=\n <john@example.com>;\n",
"expected": {
"Group": [
{
"name": null,
"addresses": [
{
"name": " James Smythe",
"address": "james@example.com"
}
]
},
{
"name": "Friends",
"addresses": [
{
"name": null,
"address": "jane@example.com"
},
{
"name": "John Smîth",
"address": "john@example.com"
}
]
}
]
}
},
{
"header": "List 1: addr1@test.com, addr2@test.com; List 2: addr3@test.com, addr4@test.com; addr5@test.com, addr6@test.com\n",
"expected": {
"Group": [
{
"name": "List 1",
"addresses": [
{
"name": null,
"address": "addr1@test.com"
},
{
"name": null,
"address": "addr2@test.com"
}
]
},
{
"name": "List 2",
"addresses": [
{
"name": null,
"address": "addr3@test.com"
},
{
"name": null,
"address": "addr4@test.com"
}
]
},
{
"name": null,
"addresses": [
{
"name": null,
"address": "addr5@test.com"
},
{
"name": null,
"address": "addr6@test.com"
}
]
}
]
}
},
{
"header": "\"List 1\": addr1@test.com, addr2@test.com; \"List 2\": addr3@test.com, addr4@test.com; addr5@test.com, addr6@test.com\n",
"expected": {
"Group": [
{
"name": "List 1",
"addresses": [
{
"name": null,
"address": "addr1@test.com"
},
{
"name": null,
"address": "addr2@test.com"
}
]
},
{
"name": "List 2",
"addresses": [
{
"name": null,
"address": "addr3@test.com"
},
{
"name": null,
"address": "addr4@test.com"
}
]
},
{
"name": null,
"addresses": [
{
"name": null,
"address": "addr5@test.com"
},
{
"name": null,
"address": "addr6@test.com"
}
]
}
]
}
},
{
"header": "\"=?utf-8?b?VGjDrXMgw61zIHbDoWzDrWQgw5pURjg=?=\": addr1@test.com, addr2@test.com; =?utf-8?b?VGjDrXMgw61zIHbDoWzDrWQgw5pURjg=?=: addr3@test.com, addr4@test.com; addr5@test.com, addr6@test.com\n",
"expected": {
"Group": [
{
"name": "Thís ís válíd ÚTF8",
"addresses": [
{
"name": null,
"address": "addr1@test.com"
},
{
"name": null,
"address": "addr2@test.com"
}
]
},
{
"name": "Thís ís válíd ÚTF8",
"addresses": [
{
"name": null,
"address": "addr3@test.com"
},
{
"name": null,
"address": "addr4@test.com"
}
]
},
{
"name": null,
"addresses": [
{
"name": null,
"address": "addr5@test.com"
},
{
"name": null,
"address": "addr6@test.com"
}
]
}
]
}
},
{
"header": "<http://www.host.com/list/archive/> (Web Archive)\n",
"expected": {
"List": [
{
"name": "Web Archive",
}
]
}
},
{
"header": "<mailto:archive@host.com?subject=index%20list>\n",
"expected": {
"List": [
{
"name": null,
"address": "mailto:archive@host.com?subject=index%20list"
}
]
}
},
{
"header": "<mailto:moderator@host.com> (Postings are Moderated)\n",
"expected": {
"List": [
{
"name": "Postings are Moderated",
"address": "mailto:moderator@host.com"
}
]
}
},
{
"header": "(Use this command to join the list)\n <mailto:list-manager@host.com?body=subscribe%20list>\n",
"expected": {
"List": [
{
"name": "Use this command to join the list",
"address": "mailto:list-manager@host.com?body=subscribe%20list"
}
]
}
},
{
"header": "<http://www.host.com/list.cgi?cmd=sub&lst=list>,\n <mailto:list-manager@host.com?body=subscribe%20list>\n",
"expected": {
"List": [
{
"name": null,
},
{
"name": null,
"address": "mailto:list-manager@host.com?body=subscribe%20list"
}
]
}
},
{
"header": "NO (posting not allowed on this list)\n",
"expected": {
"List": [
{
"name": "posting not allowed on this list",
"address": "NO"
}
]
}
},
{
"header": "<ftp://ftp.host.com/list.txt> (FTP),\n <mailto:list@host.com?subject=help>\n",
"expected": {
"List": [
{
"name": "FTP",
},
{
"name": null,
"address": "mailto:list@host.com?subject=help"
}
]
}
},
{
"header": "<http://www.host.com/list/>, <mailto:list-info@host.com>\n",
"expected": {
"List": [
{
"name": null,
},
{
"name": null,
"address": "mailto:list-info@host.com"
}
]
}
},
{
"header": "(Use this command to get off the list)\n <mailto:list-manager@host.com?body=unsubscribe%20list>\n",
"expected": {
"List": [
{
"name": "Use this command to get off the list",
"address": "mailto:list-manager@host.com?body=unsubscribe%20list"
}
]
}
},
{
"header": "<http://www.host.com/list.cgi?cmd=unsub&lst=list>,\n <mailto:list-request@host.com?subject=unsubscribe>\n",
"expected": {
"List": [
{
"name": null,
},
{
"name": null,
"address": "mailto:list-request@host.com?subject=unsubscribe"
}
]
}
},
{
"header": "<mailto:listmom@host.com> (Contact Person for Help)\n",
"expected": {
"List": [
{
"name": "Contact Person for Help",
"address": "mailto:listmom@host.com"
}
]
}
},
{
"header": "\"\\\\\\\\\\\\\\\\S. NIG\\\\\\\\\\\\\\\\\" <first.last@host.com>",
"expected": {
"List": [
{
"name": "\\\\\\\\S. NIG\\\\\\\\",
"address": "first.last@host.com"
}
]
}
},
{
"header": "\"phil@example.com\" <phil@example.com>\n",
"expected": {
"List": [
{
"name": "phil@example.com",
"address": "phil@example.com"
}
]
}
},
{
"header": "\"<phil@example.com>\" <phil@example.com>\n",
"expected": {
"List": [
{
"name": "<phil@example.com>",
"address": "phil@example.com"
}
]
}
},
{
"header": "phil@example.com <phil@example.com>\n",
"expected": {
"List": [
{
"name": "phil@example.com",
"address": "phil@example.com"
}
]
}
}
]