{"action":"created","issue":{"url":"https://api.github.com/repos/zbateson/MailMimeParser/issues/70","repository_url":"https://api.github.com/repos/zbateson/MailMimeParser","labels_url":"https://api.github.com/repos/zbateson/MailMimeParser/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/zbateson/MailMimeParser/issues/70/comments","events_url":"https://api.github.com/repos/zbateson/MailMimeParser/issues/70/events","html_url":"https://github.com/zbateson/MailMimeParser/issues/70","id":336273412,"node_id":"MDU6SXNzdWUzMzYyNzM0MTI=","number":70,"title":"File attaching not working","user":{"login":"miknazarenko","id":39701214,"node_id":"MDQ6VXNlcjM5NzAxMjE0","avatar_url":"https://avatars2.githubusercontent.com/u/39701214?v=4","gravatar_id":"","url":"https://api.github.com/users/miknazarenko","html_url":"https://github.com/miknazarenko","followers_url":"https://api.github.com/users/miknazarenko/followers","following_url":"https://api.github.com/users/miknazarenko/following{/other_user}","gists_url":"https://api.github.com/users/miknazarenko/gists{/gist_id}","starred_url":"https://api.github.com/users/miknazarenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miknazarenko/subscriptions","organizations_url":"https://api.github.com/users/miknazarenko/orgs","repos_url":"https://api.github.com/users/miknazarenko/repos","events_url":"https://api.github.com/users/miknazarenko/events{/privacy}","received_events_url":"https://api.github.com/users/miknazarenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-27T15:13:55Z","updated_at":"2018-06-27T18:22:03Z","closed_at":null,"author_association":"NONE","body":"```\r\n        $mail = \\ZBateson\\MailMimeParser\\Message::from('');\r\n        $mail->setRawHeader('Subject', 'HELLO');\r\n\r\n        $mail->addAttachmentPartFromFile(realpath(\"a.txt\"), mime_content_type(realpath(\"a.txt\")), \"HI\");\r\n\r\n        $commander->append((string) $mail);\r\n```\r\n\r\nthis code build new message and append it to inbox folder. But file doesn't attached. In the mail body I get \"begin 666 HI #:&5Y' end\"\r\n\r\nHow do I attach file properly ? That I can see it in my mail when append ? I am sure, my append method works properly, because I tried fetch message with attachments, parse it to object with your parse method, then convert back to string and append to inbox, attachments appears properly. "},"comment":{"url":"https://api.github.com/repos/zbateson/MailMimeParser/issues/comments/400781973","html_url":"https://github.com/zbateson/MailMimeParser/issues/70#issuecomment-400781973","issue_url":"https://api.github.com/repos/zbateson/MailMimeParser/issues/70","id":400781973,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDc4MTk3Mw==","user":{"login":"mvnaz","id":15434002,"node_id":"MDQ6VXNlcjE1NDM0MDAy","avatar_url":"https://avatars0.githubusercontent.com/u/15434002?v=4","gravatar_id":"","url":"https://api.github.com/users/mvnaz","html_url":"https://github.com/mvnaz","followers_url":"https://api.github.com/users/mvnaz/followers","following_url":"https://api.github.com/users/mvnaz/following{/other_user}","gists_url":"https://api.github.com/users/mvnaz/gists{/gist_id}","starred_url":"https://api.github.com/users/mvnaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvnaz/subscriptions","organizations_url":"https://api.github.com/users/mvnaz/orgs","repos_url":"https://api.github.com/users/mvnaz/repos","events_url":"https://api.github.com/users/mvnaz/events{/privacy}","received_events_url":"https://api.github.com/users/mvnaz/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T18:22:03Z","updated_at":"2018-06-27T18:22:03Z","author_association":"NONE","body":"Man thank you ! Swift it's what I need ) Of course I heard about this and used it, but in this case don't remembered that it migh be useful ) "}}
{"actor":{"display_login":"mvnaz"}}