private GetRawValue ( MimeKit.FormatOptions format ) : byte[] | ||
format | MimeKit.FormatOptions | |
return | byte[] |
internal byte[] GetRawValue (FormatOptions format)
{
if (format.International) {
if (textValue == null)
textValue = Unfold (Rfc2047.DecodeText (Options, RawValue));
// Note: if we're reformatting to be International, then charset doesn't matter.
return FormatRawValue (format, CharsetUtils.UTF8);
}
return rawValue;
}
static void DkimWriteHeaderSimple (FormatOptions options, Stream stream, Header header) { var rawValue = header.GetRawValue (options); stream.Write (header.RawField, 0, header.RawField.Length); stream.Write (new [] { (byte) ':' }, 0, 1); stream.Write (rawValue, 0, rawValue.Length); }