{"action":"created","issue":{"url":"https://api.github.com/repos/zbateson/MailMimeParser/issues/38","repository_url":"https://api.github.com/repos/zbateson/MailMimeParser","labels_url":"https://api.github.com/repos/zbateson/MailMimeParser/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/zbateson/MailMimeParser/issues/38/comments","events_url":"https://api.github.com/repos/zbateson/MailMimeParser/issues/38/events","html_url":"https://github.com/zbateson/MailMimeParser/issues/38","id":217801930,"number":38,"title":"Incorrect Html content parsing","user":{"login":"pytnik89","id":2575983,"avatar_url":"https://avatars2.githubusercontent.com/u/2575983?v=3","gravatar_id":"","url":"https://api.github.com/users/pytnik89","html_url":"https://github.com/pytnik89","followers_url":"https://api.github.com/users/pytnik89/followers","following_url":"https://api.github.com/users/pytnik89/following{/other_user}","gists_url":"https://api.github.com/users/pytnik89/gists{/gist_id}","starred_url":"https://api.github.com/users/pytnik89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pytnik89/subscriptions","organizations_url":"https://api.github.com/users/pytnik89/orgs","repos_url":"https://api.github.com/users/pytnik89/repos","events_url":"https://api.github.com/users/pytnik89/events{/privacy}","received_events_url":"https://api.github.com/users/pytnik89/received_events","type":"User","site_admin":false},"labels":[{"id":359307328,"url":"https://api.github.com/repos/zbateson/MailMimeParser/labels/Clarification%20needed","name":"Clarification needed","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-29T08:32:27Z","updated_at":"2017-04-03T20:09:05Z","closed_at":null,"body":"Hello, my friend.\r\nFirst of all let me thanks you for your awesome lib. It's a realy good alternative to those that uses mailparse extension.\r\nI found some strange behaviour when parse simple mail content.\r\nWhen I just echo html content it differs from that in email.\r\n`$email = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/mail_debug_content.txt');\r\n$mailParser = new ZBateson\\MailMimeParser\\MailMimeParser();\r\n$Message = $mailParser->parse($email);\r\n$html = $Message->getHtmlContent();\r\n$atts = $Message->getAllAttachmentParts();\r\necho $html;\r\n`\r\nIf it is due to of my misunderstanding of what's going on, please give advise to where look up.\r\n\r\nThanks a lot for your help!\r\n \r\n[mail_debug_content.txt](https://github.com/zbateson/MailMimeParser/files/878313/mail_debug_content.txt)\r\n"},"comment":{"url":"https://api.github.com/repos/zbateson/MailMimeParser/issues/comments/291258766","html_url":"https://github.com/zbateson/MailMimeParser/issues/38#issuecomment-291258766","issue_url":"https://api.github.com/repos/zbateson/MailMimeParser/issues/38","id":291258766,"user":{"login":"zbateson","id":8356974,"avatar_url":"https://avatars1.githubusercontent.com/u/8356974?v=3","gravatar_id":"","url":"https://api.github.com/users/zbateson","html_url":"https://github.com/zbateson","followers_url":"https://api.github.com/users/zbateson/followers","following_url":"https://api.github.com/users/zbateson/following{/other_user}","gists_url":"https://api.github.com/users/zbateson/gists{/gist_id}","starred_url":"https://api.github.com/users/zbateson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbateson/subscriptions","organizations_url":"https://api.github.com/users/zbateson/orgs","repos_url":"https://api.github.com/users/zbateson/repos","events_url":"https://api.github.com/users/zbateson/events{/privacy}","received_events_url":"https://api.github.com/users/zbateson/received_events","type":"User","site_admin":false},"created_at":"2017-04-03T20:09:05Z","updated_at":"2017-04-03T20:09:05Z","body":"Hi @pytnik89 --\r\n\r\nThat's awesome, thanks for investigating!\r\n\r\nI had a quick try, and reading your email seemed to work for me.  strlen should return byte count anyway (mb_strlen returns character count)."}}
{"actor":{"display_login":"zbateson"}}