{"action":"created","issue":{"url":"https://api.github.com/repos/jstedfast/MimeKit/issues/244","repository_url":"https://api.github.com/repos/jstedfast/MimeKit","labels_url":"https://api.github.com/repos/jstedfast/MimeKit/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/jstedfast/MimeKit/issues/244/comments","events_url":"https://api.github.com/repos/jstedfast/MimeKit/issues/244/events","html_url":"https://github.com/jstedfast/MimeKit/issues/244","id":154865705,"number":244,"title":"Invalid Characters In Base64 Encoded Attachment Of Composed Message","user":{"login":"aluitink","id":3255752,"avatar_url":"https://avatars.githubusercontent.com/u/3255752?v=3","gravatar_id":"","url":"https://api.github.com/users/aluitink","html_url":"https://github.com/aluitink","followers_url":"https://api.github.com/users/aluitink/followers","following_url":"https://api.github.com/users/aluitink/following{/other_user}","gists_url":"https://api.github.com/users/aluitink/gists{/gist_id}","starred_url":"https://api.github.com/users/aluitink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aluitink/subscriptions","organizations_url":"https://api.github.com/users/aluitink/orgs","repos_url":"https://api.github.com/users/aluitink/repos","events_url":"https://api.github.com/users/aluitink/events{/privacy}","received_events_url":"https://api.github.com/users/aluitink/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-14T17:24:56Z","updated_at":"2016-05-14T17:28:45Z","closed_at":null,"body":"I'm composing a MimeMessage that has an embedded message with inline attachments. The attachment is becoming corrupted and it appears to be due to this invalid character sequence in the base64 encoded data.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3255752/15269740/3ad4bcd0-19c6-11e6-9b8d-17707511d108.png)\r\n\r\nFrom what I can tell, everything before the sequence is valid, everything after that sequence is garbage.\r\n\r\nIf I ToString the message containing the attachment without attaching to another message it comes out clean."},"comment":{"url":"https://api.github.com/repos/jstedfast/MimeKit/issues/comments/219232740","html_url":"https://github.com/jstedfast/MimeKit/issues/244#issuecomment-219232740","issue_url":"https://api.github.com/repos/jstedfast/MimeKit/issues/244","id":219232740,"user":{"login":"aluitink","id":3255752,"avatar_url":"https://avatars.githubusercontent.com/u/3255752?v=3","gravatar_id":"","url":"https://api.github.com/users/aluitink","html_url":"https://github.com/aluitink","followers_url":"https://api.github.com/users/aluitink/followers","following_url":"https://api.github.com/users/aluitink/following{/other_user}","gists_url":"https://api.github.com/users/aluitink/gists{/gist_id}","starred_url":"https://api.github.com/users/aluitink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aluitink/subscriptions","organizations_url":"https://api.github.com/users/aluitink/orgs","repos_url":"https://api.github.com/users/aluitink/repos","events_url":"https://api.github.com/users/aluitink/events{/privacy}","received_events_url":"https://api.github.com/users/aluitink/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T17:28:45Z","updated_at":"2016-05-14T17:28:45Z","body":"Seems to only happen when using .ToString() of a MimeMessage, looks good if I WriteTo"}}