{"action":"opened","issue":{"url":"https://api.github.com/repos/jstedfast/MimeKit/issues/162","labels_url":"https://api.github.com/repos/jstedfast/MimeKit/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/jstedfast/MimeKit/issues/162/comments","events_url":"https://api.github.com/repos/jstedfast/MimeKit/issues/162/events","html_url":"https://github.com/jstedfast/MimeKit/issues/162","id":100458292,"number":162,"title":"OpenWrite vs Create","user":{"login":"demidov71","id":13758893,"avatar_url":"https://avatars.githubusercontent.com/u/13758893?v=3","gravatar_id":"","url":"https://api.github.com/users/demidov71","html_url":"https://github.com/demidov71","followers_url":"https://api.github.com/users/demidov71/followers","following_url":"https://api.github.com/users/demidov71/following{/other_user}","gists_url":"https://api.github.com/users/demidov71/gists{/gist_id}","starred_url":"https://api.github.com/users/demidov71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demidov71/subscriptions","organizations_url":"https://api.github.com/users/demidov71/orgs","repos_url":"https://api.github.com/users/demidov71/repos","events_url":"https://api.github.com/users/demidov71/events{/privacy}","received_events_url":"https://api.github.com/users/demidov71/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-12T03:41:08Z","updated_at":"2015-08-12T03:41:08Z","closed_at":null,"body":"MimeEntity and MimeMessage.WriteTo(string) internally use File.OpenWrite instead of File.Create. This is a bug, because OpenWrite does not truncate the file if it already exists, but writes over it. So the result is the wrong output file size."}}