Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenWrite vs Create #162

Closed
demidov71 opened this issue Aug 12, 2015 · 1 comment
Closed

OpenWrite vs Create #162

demidov71 opened this issue Aug 12, 2015 · 1 comment
Labels
invalid This doesn't seem right

Comments

@demidov71
Copy link

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.

@jstedfast
Copy link
Owner

That is already fixed in the current stable release.

@jstedfast jstedfast added the invalid This doesn't seem right label Aug 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants