{"action":"created","issue":{"url":"https://api.github.com/repos/mikel/mail/issues/986","repository_url":"https://api.github.com/repos/mikel/mail","labels_url":"https://api.github.com/repos/mikel/mail/issues/986/labels{/name}","comments_url":"https://api.github.com/repos/mikel/mail/issues/986/comments","events_url":"https://api.github.com/repos/mikel/mail/issues/986/events","html_url":"https://github.com/mikel/mail/pull/986","id":148530970,"number":986,"title":"fix issue calling .to_s multiple times corrupts message body","user":{"login":"robguthrie","id":486367,"avatar_url":"https://avatars.githubusercontent.com/u/486367?v=3","gravatar_id":"","url":"https://api.github.com/users/robguthrie","html_url":"https://github.com/robguthrie","followers_url":"https://api.github.com/users/robguthrie/followers","following_url":"https://api.github.com/users/robguthrie/following{/other_user}","gists_url":"https://api.github.com/users/robguthrie/gists{/gist_id}","starred_url":"https://api.github.com/users/robguthrie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robguthrie/subscriptions","organizations_url":"https://api.github.com/users/robguthrie/orgs","repos_url":"https://api.github.com/users/robguthrie/repos","events_url":"https://api.github.com/users/robguthrie/events{/privacy}","received_events_url":"https://api.github.com/users/robguthrie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-04-15T01:48:22Z","updated_at":"2016-07-18T22:12:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mikel/mail/pulls/986","html_url":"https://github.com/mikel/mail/pull/986","diff_url":"https://github.com/mikel/mail/pull/986.diff","patch_url":"https://github.com/mikel/mail/pull/986.patch"},"body":"I have discovered a bug with calling message.to_s when the body of the message contains non-latin characters.\r\n\r\nI first reported the error in [ankane/ahoy_email's issues](https://github.com/ankane/ahoy_email/issues/50) where I detailed the buggy behaviour.\r\n\r\nI've created a work around but I'm not sure if it's the best approach. Anyway it works for me. Thanks for your time."},"comment":{"url":"https://api.github.com/repos/mikel/mail/issues/comments/233475104","html_url":"https://github.com/mikel/mail/pull/986#issuecomment-233475104","issue_url":"https://api.github.com/repos/mikel/mail/issues/986","id":233475104,"user":{"login":"thatguysimon","id":14040554,"avatar_url":"https://avatars.githubusercontent.com/u/14040554?v=3","gravatar_id":"","url":"https://api.github.com/users/thatguysimon","html_url":"https://github.com/thatguysimon","followers_url":"https://api.github.com/users/thatguysimon/followers","following_url":"https://api.github.com/users/thatguysimon/following{/other_user}","gists_url":"https://api.github.com/users/thatguysimon/gists{/gist_id}","starred_url":"https://api.github.com/users/thatguysimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatguysimon/subscriptions","organizations_url":"https://api.github.com/users/thatguysimon/orgs","repos_url":"https://api.github.com/users/thatguysimon/repos","events_url":"https://api.github.com/users/thatguysimon/events{/privacy}","received_events_url":"https://api.github.com/users/thatguysimon/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T22:12:51Z","updated_at":"2016-07-18T22:12:51Z","body":"Premailer? I'm confused.. the workaround you suggested in this pull request did stop premailer from working when I tried it, but I didn't think the problem stems from premailer.\r\nEither way, this seems like an important issue, why not merge the patch into the original premailer?"}}
{"actor":{"display_login":"thatguysimon"}}