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

MimeMessage.WriteTo overrides existing characters instead of replacing the file #154

Closed
Suchiman opened this issue Jul 21, 2015 · 1 comment
Labels
bug Something isn't working

Comments

@Suchiman
Copy link

The WriteTo method uses File.OpenWrite (see remarks) which will not replace the existing file and neither append to it but instead replace as much characters as have been written.

The Output file will therefore likely become invalid which doesn't seems desired and caused some confusion for me because i was wondering why the output file still contained 2 MimeEntities while i did in fact remove one 💥

@jstedfast
Copy link
Owner

Thanks. I've fixed this in git master now.

@jstedfast jstedfast added the bug Something isn't working label Aug 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants