{"action":"opened","issue":{"url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues/88","repository_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser","labels_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues/88/comments","events_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues/88/events","html_url":"https://github.com/php-mime-mail-parser/php-mime-mail-parser/issues/88","id":151849113,"number":88,"title":"bug in getAddresses","user":{"login":"Monyer","id":1435145,"avatar_url":"https://avatars.githubusercontent.com/u/1435145?v=3","gravatar_id":"","url":"https://api.github.com/users/Monyer","html_url":"https://github.com/Monyer","followers_url":"https://api.github.com/users/Monyer/followers","following_url":"https://api.github.com/users/Monyer/following{/other_user}","gists_url":"https://api.github.com/users/Monyer/gists{/gist_id}","starred_url":"https://api.github.com/users/Monyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Monyer/subscriptions","organizations_url":"https://api.github.com/users/Monyer/orgs","repos_url":"https://api.github.com/users/Monyer/repos","events_url":"https://api.github.com/users/Monyer/events{/privacy}","received_events_url":"https://api.github.com/users/Monyer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-29T11:51:52Z","updated_at":"2016-04-29T11:51:52Z","closed_at":null,"body":"in eml\r\n`From: =?utf-8?Q?John=20Green=2C=20NA?= <editor@domain.com>`\r\n\r\nwhen decode\r\n`From:John Green, NA<editor@domain.com>`\r\n\r\nin code\r\n```\r\n$from = $Parser->getAddresses('from');\r\nvar_dump($from);\r\n```\r\n\r\nthe wrong result is\r\n```\r\narray(2) {\r\n  [0]=>\r\n  array(3) {\r\n    [\"display\"]=>\r\n    string(15) \"John Green\"\r\n    [\"address\"]=>\r\n    string(15) \"John Green\"\r\n    [\"is_group\"]=>\r\n    bool(false)\r\n  }\r\n  [1]=>\r\n  array(3) {\r\n    [\"display\"]=>\r\n    string(3) \"NA\"\r\n    [\"address\"]=>\r\n    string(24) \"editor@domain.com\"\r\n    [\"is_group\"]=>\r\n    bool(false)\r\n  }\r\n}\r\n```\r\nthe right one is\r\narray(1) {\r\n  [0]=>\r\n  array(3) {\r\n    [\"display\"]=>\r\n    string(15) \"John Green, NA\"\r\n    [\"address\"]=>\r\n    string(15) \"editor@domain.com\"\r\n    [\"is_group\"]=>\r\n    bool(false)\r\n  }\r\n}\r\n"}}