/// <summary> /// Initializes a new instance of the <see cref="MimeKit.FormatOptions"/> class. /// </summary> /// <remarks> /// Creates a new set of formatting options for use with methods such as /// <see cref="MimeMessage.WriteTo(System.IO.Stream,System.Threading.CancellationToken)"/>. /// </remarks> public FormatOptions() { HiddenHeaders = new HashSet <HeaderId> (); parameterEncodingMethod = ParameterEncodingMethod.Rfc2231; //maxLineLength = DefaultMaxLineLength; allowMixedHeaderCharsets = false; international = false; if (Environment.NewLine.Length == 1) { newLineFormat = NewLineFormat.Unix; } else { newLineFormat = NewLineFormat.Dos; } }
/// <summary> /// Initializes a new instance of the <see cref="MimeKit.FormatOptions"/> class. /// </summary> /// <remarks> /// Creates a new set of formatting options for use with methods such as /// <see cref="MimeMessage.WriteTo(System.IO.Stream,System.Threading.CancellationToken)"/>. /// </remarks> public FormatOptions () { HiddenHeaders = new HashSet<HeaderId> (); parameterEncodingMethod = ParameterEncodingMethod.Rfc2231; //maxLineLength = DefaultMaxLineLength; allowMixedHeaderCharsets = false; international = false; if (Environment.NewLine.Length == 1) newLineFormat = NewLineFormat.Unix; else newLineFormat = NewLineFormat.Dos; }