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

MailboxAddress ToString method only allows encoding using FormatOptions.Default #208

Closed
jakejscott opened this issue Dec 14, 2015 · 4 comments
Labels
enhancement New feature or request

Comments

@jakejscott
Copy link

see:
https://github.com/jstedfast/MimeKit/blob/master/MimeKit/MailboxAddress.cs#L306

If I try and set the NewLineFormat to Unix it throws:

FormatOptions.Default.NewLineFormat = NewLineFormat.Unix;

So wondering how I can encode the address with custom FormatOptions. (I'm sending email to Mailgun via HTTP, and I don't think the like DOS style line endings)

@jstedfast
Copy link
Owner

HTTP uses DOS line endings, but I've added a new ToSTring() method that takes a FormatOptions anyway.

@jstedfast jstedfast added the enhancement New feature or request label Dec 14, 2015
@jakejscott
Copy link
Author

Oh didn't know about DOS + Http :)

@jstedfast
Copy link
Owner

FWIW, all internet protocols use DOS line endings (e.g. CRLF)

@jstedfast
Copy link
Owner

MimeKit 1.2.18 just released to nuget supports this. I'll be making another 1.3.0-beta in the next few days (if you need dnxcore50)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants