[ { "header": "John Doe \n", "expected": [ { "mailbox": { "name": "John Doe", "address": "jdoe@machine.example" } } ] }, { "header": " Mary Smith \n", "expected": [ { "mailbox": { "name": "Mary Smith", "address": "mary@example.net" } } ] }, { "header": "\"Joe Q. Public\" \n", "expected": [ { "mailbox": { "name": "Joe Q. Public", "address": "john.q.public@example.com" } } ] }, { "header": "Mary Smith , jdoe@example.org, Who? \n", "expected": [ { "mailbox": { "name": "Mary Smith", "address": "mary@x.test" } }, { "mailbox": { "name": null, "address": "jdoe@example.org" } }, { "mailbox": { "name": "Who?", "address": "one@y.test" } } ] }, { "header": ", \"Giant; \\\"Big\\\" Box\" \n", "expected": [ { "mailbox": { "name": null, "address": "boss@nil.test" } }, { "mailbox": { "name": "Giant; \"Big\" Box", "address": "sysservices@example.net" } } ] }, { "header": "A Group:Ed Jones ,joe@where.test,John ;\n", "expected": [ { "group": { "name": "A Group", "mailboxes": [ { "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", "mailboxes": [] } } ] }, { "header": "\"Mary Smith: Personal Account\" \n", "expected": [ { "mailbox": { "name": "Mary Smith: Personal Account", "address": "smith@home.example" } } ] }, { "header": "Pete(A nice \\) chap) \n", "expected": [ { "mailbox": { "name": "Pete (A nice ) chap his account his host)", "address": "pete@silly.test" } } ] }, { "header": "Pete(A nice \n \\\n ) chap) \n", "expected": [ { "mailbox": { "name": "Pete (A nice ) chap his account his host)", "address": "pete@silly.test" } } ] }, { "header": "A Group(Some people)\n :Chris Jones ,\n joe@example.org,\n John (my dear friend); (the end of the group)\n", "expected": [ { "group": { "name": "A Group (Some people)", "mailboxes": [ { "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" } ] } }, { "mailbox": { "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)", "mailboxes": [ { "name": "nobody(that I know)", "address": null } ] } } ] }, { "header": "Joe Q. Public \n", "expected": [ { "mailbox": { "name": "Joe Q. Public", "address": "john.q.public@example.com" } } ] }, { "header": "Mary Smith <@node.test:mary@example.net>, , jdoe@test . example\n", "expected": [ { "mailbox": { "name": "Mary Smith", "address": "@node.test:mary@example.net" } }, { "mailbox": { "name": null, "address": "jdoe@test . example" } } ] }, { "header": "John Doe \n", "expected": [ { "mailbox": { "name": "John Doe (comment)", "address": "jdoe@machine. example" } } ] }, { "header": "Mary Smith\n \n\t\n", "expected": [ { "mailbox": { "name": "Mary Smith", "address": "mary@example.net" } } ] }, { "header": "=?US-ASCII*EN?Q?Keith_Moore?= \n", "expected": [ { "mailbox": { "name": "Keith Moore", "address": "moore@cs.utk.edu" } } ] }, { "header": "John =?US-ASCII*EN?Q?Doe?= \n", "expected": [ { "mailbox": { "name": "John Doe", "address": "moore@cs.utk.edu" } } ] }, { "header": "=?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= \n", "expected": [ { "mailbox": { "name": "Keld Jørn Simonsen", "address": "keld@dkuug.dk" } } ] }, { "header": "=?ISO-8859-1?Q?Andr=E9?= Pirard \n", "expected": [ { "mailbox": { "name": "André Pirard", "address": "PIRARD@vm1.ulg.ac.be" } } ] }, { "header": "=?ISO-8859-1?Q?Olle_J=E4rnefors?= \n", "expected": [ { "mailbox": { "name": "Olle Järnefors", "address": "ojarnef@admin.kth.se" } } ] }, { "header": "ietf-822@dimacs.rutgers.edu, ojarnef@admin.kth.se\n", "expected": [ { "mailbox": { "name": null, "address": "ietf-822@dimacs.rutgers.edu" } }, { "mailbox": { "name": null, "address": "ojarnef@admin.kth.se" } } ] }, { "header": "Nathaniel Borenstein \n (=?iso-8859-8?b?7eXs+SDv4SDp7Oj08A==?=)\n", "expected": [ { "mailbox": { "name": "Nathaniel Borenstein (םולש ןב ילטפנ)", "address": "nsb@thumper.bellcore.com" } } ] }, { "header": "Greg Vaudreuil , Ned Freed\n , Keith Moore \n", "expected": [ { "mailbox": { "name": "Greg Vaudreuil", "address": "gvaudre@NRI.Reston.VA.US" } }, { "mailbox": { "name": "Ned Freed", "address": "ned@innosoft.com" } }, { "mailbox": { "name": "Keith Moore", "address": "moore@cs.utk.edu" } } ] }, { "header": "=?ISO-8859-1?Q?a?= \n", "expected": [ { "mailbox": { "name": "a", "address": "test@test.com" } } ] }, { "header": "\"=?ISO-8859-1?Q?a?= b\" \n", "expected": [ { "mailbox": { "name": "a b", "address": "test@test.com" } } ] }, { "header": "=?ISO-8859-1?Q?a?= =?ISO-8859-1?Q?b?= \n", "expected": [ { "mailbox": { "name": "ab", "address": "test@test.com" } } ] }, { "header": "=?ISO-8859-1?Q?a?=\n =?ISO-8859-1?Q?b?= \n", "expected": [ { "mailbox": { "name": "ab", "address": "test@test.com" } } ] }, { "header": "=?ISO-8859-1?Q?a?= \"=?ISO-8859-2?Q?_b?=\" \n", "expected": [ { "mailbox": { "name": "a b", "address": "test@test.com" } } ] }, { "header": " \n", "expected": [ { "mailbox": { "name": null, "address": "test@test.com" } } ] }, { "header": "test@test.com\ninvalid@address.com\n", "expected": [ { "mailbox": { "name": null, "address": "test@test.com" } } ] }, { "header": "\"=?ISO-8859-1?Q =?ISO-8859-1?Q?a?= \\\" =?ISO-8859-1?Q?b?=\" \n\nbody@content.com", "expected": [ { "mailbox": { "name": "=?ISO-8859-1?Q a \" b", "address": "last@address.com" } } ] }, { "header": "=? \n", "expected": [ { "mailbox": { "name": "=?", "address": "name@domain.com" } } ] }, { "header": "\" James Smythe\" , Friends:\n jane@example.com, =?UTF-8?Q?John_Sm=C3=AEth?=\n ;\n", "expected": [ { "mailbox": { "name": " James Smythe", "address": "james@example.com" } }, { "group": { "name": "Friends", "mailboxes": [ { "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", "mailboxes": [ { "name": null, "address": "addr1@test.com" }, { "name": null, "address": "addr2@test.com" } ] } }, { "group": { "name": "List 2", "mailboxes": [ { "name": null, "address": "addr3@test.com" }, { "name": null, "address": "addr4@test.com" } ] } }, { "mailbox": { "name": null, "address": "addr5@test.com" } }, { "mailbox": { "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", "mailboxes": [ { "name": null, "address": "addr1@test.com" }, { "name": null, "address": "addr2@test.com" } ] } }, { "group": { "name": "List 2", "mailboxes": [ { "name": null, "address": "addr3@test.com" }, { "name": null, "address": "addr4@test.com" } ] } }, { "mailbox": { "name": null, "address": "addr5@test.com" } }, { "mailbox": { "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", "mailboxes": [ { "name": null, "address": "addr1@test.com" }, { "name": null, "address": "addr2@test.com" } ] } }, { "group": { "name": "Thís ís válíd ÚTF8", "mailboxes": [ { "name": null, "address": "addr3@test.com" }, { "name": null, "address": "addr4@test.com" } ] } }, { "mailbox": { "name": null, "address": "addr5@test.com" } }, { "mailbox": { "name": null, "address": "addr6@test.com" } } ] }, { "header": " (Web Archive)\n", "expected": [ { "mailbox": { "name": "Web Archive", "address": "http://www.host.com/list/archive/" } } ] }, { "header": "\n", "expected": [ { "mailbox": { "name": null, "address": "mailto:archive@host.com?subject=index%20list" } } ] }, { "header": " (Postings are Moderated)\n", "expected": [ { "mailbox": { "name": "Postings are Moderated", "address": "mailto:moderator@host.com" } } ] }, { "header": "(Use this command to join the list)\n \n", "expected": [ { "mailbox": { "name": "Use this command to join the list", "address": "mailto:list-manager@host.com?body=subscribe%20list" } } ] }, { "header": ",\n \n", "expected": [ { "mailbox": { "name": null, "address": "http://www.host.com/list.cgi?cmd=sub&lst=list" } }, { "mailbox": { "name": null, "address": "mailto:list-manager@host.com?body=subscribe%20list" } } ] }, { "header": "NO (posting not allowed on this list)\n", "expected": [ { "mailbox": { "name": "posting not allowed on this list", "address": "NO" } } ] }, { "header": " (FTP),\n \n", "expected": [ { "mailbox": { "name": "FTP", "address": "ftp://ftp.host.com/list.txt" } }, { "mailbox": { "name": null, "address": "mailto:list@host.com?subject=help" } } ] }, { "header": ", \n", "expected": [ { "mailbox": { "name": null, "address": "http://www.host.com/list/" } }, { "mailbox": { "name": null, "address": "mailto:list-info@host.com" } } ] }, { "header": "(Use this command to get off the list)\n \n", "expected": [ { "mailbox": { "name": "Use this command to get off the list", "address": "mailto:list-manager@host.com?body=unsubscribe%20list" } } ] }, { "header": ",\n \n", "expected": [ { "mailbox": { "name": null, "address": "http://www.host.com/list.cgi?cmd=unsub&lst=list" } }, { "mailbox": { "name": null, "address": "mailto:list-request@host.com?subject=unsubscribe" } } ] }, { "header": " (Contact Person for Help)\n", "expected": [ { "mailbox": { "name": "Contact Person for Help", "address": "mailto:listmom@host.com" } } ] }, { "header": "\"\\\\\\\\\\\\\\\\S. NIG\\\\\\\\\\\\\\\\\" ", "expected": [ { "mailbox": { "name": "\\\\\\\\S. NIG\\\\\\\\", "address": "first.last@host.com" } } ] }, { "header": "\"phil@example.com\" \n", "expected": [ { "mailbox": { "name": "phil@example.com", "address": "phil@example.com" } } ] }, { "header": "\"\" \n", "expected": [ { "mailbox": { "name": "", "address": "phil@example.com" } } ] }, { "header": "phil@example.com \n", "expected": [ { "mailbox": { "name": "phil@example.com", "address": "phil@example.com" } } ] }, { "header": "\"John\r\n Doe\" \n", "expected": [ { "mailbox": { "name": "John Doe", "address": "a@b.com" } } ] }, { "header": "\"Serge B, Chair, HR\" =?utf-8?b?U3ltcG9zaXVtL1hwb+KEog==?= conference \n", "expected": [ { "mailbox": { "name": "Serge B, Chair, HR Symposium/Xpo™ conference", "address": "a@b.com" } } ] }, { "header": "\"John\" =?utf-8?q?Doe?= \n", "expected": [ { "mailbox": { "name": "John Doe", "address": "a@b.com" } } ] }, { "header": " =?utf-8?q?Doe?=\n", "expected": [ { "mailbox": { "name": "Doe", "address": "a@b.com" } } ] }, { "header": "Name (comment) =?utf-8?q?Doe?= \n", "expected": [ { "mailbox": { "name": "Name Doe (comment)", "address": "a@b.com" } } ] }, { "header": "=?utf-8?q?a?= =?utf-8?q?b?= \n", "expected": [ { "mailbox": { "name": "ab", "address": "a@b.com" } } ] }, { "header": "=?utf-8?q?Hello?= \n", "expected": [ { "mailbox": { "name": "Hello", "address": "a@b.com" } } ] }, { "header": "\"foo =?utf-8?q?bar?=\" \n", "expected": [ { "mailbox": { "name": "foo bar", "address": "a@b.com" } } ] }, { "header": "James Derrick, Steven (PGE) SCHNEIDER, Robert Williams\n", "expected": [ { "mailbox": { "name": "James Derrick", "address": null } }, { "mailbox": { "name": "Steven SCHNEIDER (PGE)", "address": null } }, { "mailbox": { "name": "Robert Williams", "address": null } } ] }, { "header": "James Derrick (Enron Corp)\n", "expected": [ { "mailbox": { "name": "James Derrick (Enron Corp)", "address": null } } ] }, { "header": "postmaster (The Postmaster)\n", "expected": [ { "mailbox": { "name": "The Postmaster", "address": "postmaster" } } ] }, { "header": ", \n", "expected": [ { "mailbox": { "name": null, "address": "x@y.com" } }, { "mailbox": { "name": null, "address": "x@y.com" } } ] }, { "header": ", group: (some text);, \n", "expected": [ { "mailbox": { "name": null, "address": "x@y.com" } }, { "group": { "name": "group", "mailboxes": [ { "name": "some text", "address": null } ] } }, { "mailbox": { "name": null, "address": "x@y.com" } } ] }, { "header": "first: a@b.c, d@e.f; \n", "expected": [ { "group": { "name": "first", "mailboxes": [ { "name": null, "address": "a@b.c" }, { "name": null, "address": "d@e.f" } ] } }, { "mailbox": { "name": null, "address": "x@y.com" } } ] }, { "header": ", last: a@b.c;\n", "expected": [ { "mailbox": { "name": null, "address": "x@y.com" } }, { "group": { "name": "last", "mailboxes": [ { "name": null, "address": "a@b.c" } ] } } ] }, { "header": "one: a@b.c; two: d@e.f;\n", "expected": [ { "group": { "name": "one", "mailboxes": [ { "name": null, "address": "a@b.c" } ] } }, { "group": { "name": "two", "mailboxes": [ { "name": null, "address": "d@e.f" } ] } } ] }, { "header": " , \n", "expected": [ { "mailbox": { "name": null, "address": "x@y.com" } }, { "mailbox": { "name": null, "address": "x@y.com" } } ] }, { "header": " , group: (some text);, \n", "expected": [ { "mailbox": { "name": null, "address": "x@y.com" } }, { "group": { "name": "group", "mailboxes": [ { "name": "some text", "address": null } ] } }, { "mailbox": { "name": null, "address": "x@y.com" } } ] }, { "header": " first: a@b.c, d@e.f; \n", "expected": [ { "group": { "name": "first", "mailboxes": [ { "name": null, "address": "a@b.c" }, { "name": null, "address": "d@e.f" } ] } }, { "mailbox": { "name": null, "address": "x@y.com" } } ] }, { "header": " , last: a@b.c;\n", "expected": [ { "mailbox": { "name": null, "address": "x@y.com" } }, { "group": { "name": "last", "mailboxes": [ { "name": null, "address": "a@b.c" } ] } } ] }, { "header": " one: a@b.c; two: d@e.f;\n", "expected": [ { "group": { "name": "one", "mailboxes": [ { "name": null, "address": "a@b.c" } ] } }, { "group": { "name": "two", "mailboxes": [ { "name": null, "address": "d@e.f" } ] } } ] }, { "header": " one: a@b.c, two: d@e.f\n", "expected": [ { "group": { "name": "one", "mailboxes": [ { "name": null, "address": "a@b.c" } ] } }, { "group": { "name": "two", "mailboxes": [ { "name": null, "address": "d@e.f" } ] } } ] }, { "header": " undisclosed-recipients:;\n", "expected": [ { "group": { "name": "undisclosed-recipients", "mailboxes": [] } } ] }, { "header": " : a@b.c;, \n", "expected": [ { "group": { "name": null, "mailboxes": [ { "name": null, "address": "a@b.c" } ] } }, { "mailbox": { "name": null, "address": "x@y.com" } } ] }, { "header": " :;, ;\n", "expected": null }, { "header": " open: a@b.c, d@e.f\n", "expected": [ { "group": { "name": "open", "mailboxes": [ { "name": null, "address": "a@b.c" }, { "name": null, "address": "d@e.f" } ] } } ] }, { "header": "a@b.c\r\n\tjane@y.z\n", "expected": [ { "mailbox": { "name": null, "address": "a@b.cjane@y.z" } } ] }, { "header": "\"a\" x \n", "expected": [ { "mailbox": { "name": "a x", "address": "b@c.d" } } ] }, { "header": " x\n", "expected": [ { "mailbox": { "name": "x", "address": "a@b.c" } } ] }, { "header": "John\r\n Doe \n", "expected": [ { "mailbox": { "name": "John Doe", "address": "a@b.c" } } ] }, { "header": "\"Doe, John\" ,\r\n\t\" a \"\n", "expected": [ { "mailbox": { "name": "Doe, John", "address": "a@b.c" } }, { "mailbox": { "name": " a ", "address": "b@c.d" } } ] }, { "header": "\n", "expected": [ { "mailbox": { "name": null, "address": "a=?x?q?y?=@b.c" } } ] }, { "header": "< =?utf-8?q?a?=b@c.d>\n", "expected": [ { "mailbox": { "name": "a", "address": "b@c.d" } } ] }, { "header": "a@b.c (x), <>, John >\n", "expected": [ { "mailbox": { "name": "x", "address": "a@b.c" } }, { "mailbox": { "name": "John >", "address": "a@b.c" } } ] }, { "header": "x ,y\r\n", "expected": [ { "mailbox": { "name": "x", "address": "a@b.c" } }, { "mailbox": { "name": "y", "address": "d@e.f" } } ] }, { "header": ", \n", "expected": [ { "mailbox": { "name": null, "address": "ab@c.d" } }, { "mailbox": { "name": "b", "address": "a@c.d" } } ] }, { "header": " Art Vandelay (Vandelay Industries)\n", "expected": [ { "mailbox": { "name": "Art Vandelay (Vandelay Industries)", "address": "art@vandelay.com" } } ] }, { "header": " \"Colleagues\": \"James Smythe\" ; Friends:\n jane@example.com, =?UTF-8?Q?John_Sm=C3=AEth?= ;\n", "expected": [ { "group": { "name": "Colleagues", "mailboxes": [ { "name": "James Smythe", "address": "james@vandelay.com" } ] } }, { "group": { "name": "Friends", "mailboxes": [ { "name": null, "address": "jane@example.com" }, { "name": "John Smîth", "address": "john@example.com" } ] } } ] }, { "header": "a@b.com", "expected": [ { "mailbox": { "name": null, "address": "a@b.com" } } ] }, { "header": "John Doe", "expected": [ { "mailbox": { "name": "John Doe", "address": null } } ] }, { "header": "John \n", "expected": [ { "mailbox": { "name": "JohnSmith", "address": "a@b.com" } } ] }, { "header": "John Smith john@example.com\n", "expected": [ { "mailbox": { "name": null, "address": "John Smith john@example.com" } } ] }, { "header": "\"unterminated \n", "expected": [ { "mailbox": { "name": "unterminated ", "address": null } } ] }, { "header": " \n", "expected": [ { "mailbox": { "name": "Joe", "address": "a@b.comc@d.com" } } ] }, { "header": "mailto:list@x.com\n", "expected": [ { "group": { "name": "mailto", "mailboxes": [ { "name": null, "address": "list@x.com" } ] } } ] }, { "header": "John Smith \n", "expected": [ { "mailbox": { "name": "John Smith", "address": "a@b.com" } } ] }, { "header": "John\n Smith \n", "expected": [ { "mailbox": { "name": "John Smith", "address": "a@b.com" } } ] }, { "header": " (x\\)y)\n", "expected": [ { "mailbox": { "name": "x)y", "address": "a@b.com" } } ] }, { "header": "=?utf-8?q??= \n", "expected": [ { "mailbox": { "name": "", "address": "a@b.com" } } ] }, { "header": "a\u000bb (c)\n", "expected": [ { "mailbox": { "name": "a\u000bb (c)", "address": null } } ] }, { "header": "café (c)\n", "expected": [ { "mailbox": { "name": "c", "address": "café" } } ] }, { "header": "=?x?q?a?= \n", "expected": [ { "mailbox": { "name": "a", "address": "a@b.com" } } ] }, { "header": "(=?x?q?c?=) \"=?y?b?Yg==?=\" \n", "expected": [ { "mailbox": { "name": "b (c)", "address": "a@b.com" } } ] }, { "header": "=?utf-8?q?caf=C3?= =?UTF-8?q?=A9?= \n", "expected": [ { "mailbox": { "name": "café", "address": "a@b.com" } } ] }, { "header": "\"=?utf-8?q?caf=C3?=\"=?utf-8?q?=A9?= \n", "expected": [ { "mailbox": { "name": "café", "address": "a@b.com" } } ] }, { "header": "=?utf-8?q?caf=C3?= =?iso-8859-1?q?=A9?= \n", "expected": [ { "mailbox": { "name": "caf�©", "address": "a@b.com" } } ] }, { "header": "=?utf-8?q?a?= b =?utf-8?q?c?= \n", "expected": [ { "mailbox": { "name": "a b c", "address": "a@b.com" } } ] }, { "header": "=?utf-8?q?a?= (=?utf-8?q?b?=) =?utf-8?q?c?=\n", "expected": [ { "mailbox": { "name": "a c (b)", "address": null } } ] }, { "header": "<=?utf-8?q?a?=b@c.d>\n", "expected": [ { "mailbox": { "name": "a", "address": "b@c.d" } } ] }, { "header": "=?utf-8?b?w6k?= \n", "expected": [ { "mailbox": { "name": "é", "address": "a@b.com" } } ] }, { "header": "A (c):; B: x@y.z;\n", "expected": [ { "group": { "name": "A", "mailboxes": [] } }, { "group": { "name": "B", "mailboxes": [ { "name": null, "address": "x@y.z" } ] } } ] }, { "header": "(c):; x@y.z;\n", "expected": [ { "mailbox": { "name": null, "address": "x@y.z" } } ] }, { "header": "(c): x@y.z\n", "expected": [ { "group": { "name": "c", "mailboxes": [ { "name": null, "address": "x@y.z" } ] } } ] }, { "header": "(c): x@y.z;\n", "expected": [ { "group": { "name": "c", "mailboxes": [ { "name": null, "address": "x@y.z" } ] } } ] }, { "header": "G (c): x@y.z;\n", "expected": [ { "group": { "name": "G (c)", "mailboxes": [ { "name": null, "address": "x@y.z" } ] } } ] }, { "header": "G (c):;\n", "expected": [ { "group": { "name": "G", "mailboxes": [] } } ] }, { "header": "(c):;\n", "expected": null }, { "header": " \n", "expected": null }, { "header": "Foo Bar \\(something\\) \n", "expected": [ { "mailbox": { "name": "Foo Bar (something)", "address": "foo@bar.com" } } ] }, { "header": "Foo \\Bar \n", "expected": [ { "mailbox": { "name": "Foo Bar", "address": "foo@bar.com" } } ] }, { "header": "Foo \\(bar \n", "expected": [ { "mailbox": { "name": "Foo (bar", "address": "a@b.c" } } ] }, { "header": "A \\(x\\) , B \n", "expected": [ { "mailbox": { "name": "A (x)", "address": "a@b.c" } }, { "mailbox": { "name": "B", "address": "d@e.f" } } ] }, { "header": " (x\\ y)\n", "expected": [ { "mailbox": { "name": "x y", "address": "a@b.com" } } ] }, { "header": "\"mario rossi\"@pec.example.it\n", "expected": [ { "mailbox": { "name": null, "address": "\"mario rossi\"@pec.example.it" } } ] }, { "header": "\"mario.rossi\"@pec.example.it, Mario <\"mario rossi\"@pec.example.it>\n", "expected": [ { "mailbox": { "name": null, "address": "\"mario.rossi\"@pec.example.it" } }, { "mailbox": { "name": "Mario", "address": "\"mario rossi\"@pec.example.it" } } ] }, { "header": "\"a\\\"b\"@example.com\n", "expected": [ { "mailbox": { "name": null, "address": "\"a\\\"b\"@example.com" } } ] }, { "header": "mario.\"rossi\"@pec.example.it (Mario)\n", "expected": [ { "mailbox": { "name": "Mario", "address": "mario.\"rossi\"@pec.example.it" } } ] }, { "header": "Team: \"a b\"@c.d;\n", "expected": [ { "group": { "name": "Team", "mailboxes": [ { "name": null, "address": "\"a b\"@c.d" } ] } } ] }, { "header": "<\"a\\\"b\"@example.com>\n", "expected": [ { "mailbox": { "name": null, "address": "\"a\\\"b\"@example.com" } } ] }, { "header": "Name <\"a\\\"b\"@example.com>\n", "expected": [ { "mailbox": { "name": "Name", "address": "\"a\\\"b\"@example.com" } } ] }, { "header": "<\"a\\\\b\"@example.com>\n", "expected": [ { "mailbox": { "name": null, "address": "\"a\\\\b\"@example.com" } } ] }, { "header": "<\"a\\\"b@c.d>, \n", "expected": [ { "mailbox": { "name": null, "address": "\"a\\\"b@c.d" } }, { "mailbox": { "name": null, "address": "ef@g.h" } } ] } ]