Specifies various options for MIME parser and writer.

Namespace:  Rebex.Mime
Assembly:  Rebex.Mail (in Rebex.Mail.dll) Version: 1.0.4086.0

Syntax

C#
[FlagsAttribute]
public enum MimeOptions
Visual Basic (Declaration)
<FlagsAttribute> _
Public Enumeration MimeOptions
Visual C++
[FlagsAttribute]
public enum class MimeOptions

Members

Member nameDescription
DoNotWriteBcc
Do not write the "Bcc" header into output stream.
DoNotParseMimeTree
Ignore the MIME tree and parse the message as a single-level entity.
ProcessAllHeaders
Parses and reencodes all headers, even when not needed or modified.
IgnoreUnparsableHeaders
Ignore unparsable headers when parsing mail message.
AlwaysWriteContentTransferEncoding
Always write a content-transfer-encoding, even if ir has a default value of "7bit"
IgnoreUnparsableSignatures
Ignore unparsable S/MIME signature entities when parsing mail message.
AllowAnyTextCharacters
Skips checking of text content for text/* entities. When this options is enabled, it is possible to use any characters inside text entities and if quoted-printable transfer-encoding is specified, the encoder persists the original text structure.
DoNotQuoteProblematicSequences
Disables encoding of leading 'F', '.' and '-' character in body parts using quoted-printable content transfer encoding. These leading characters used to cause problems to legacy mail trasfer agents, so quoted-printable-encoding them was used as a workaround thata doesn't cause any problems to properly-implemented mail agents.
OnlyParseHeaders
Only parses message headers and ignores the body.
DoNotAddDateIfNoSubjectAndFrom
Do not automatically add a date header if 'date', 'subject' or 'from' headers are missing from a top-level or embedded message.
DisableEncryptionKeyPreference
Do not include encryption key preference attribute in signed message attributes.
DisableSMimeCapabilitiesAttribute
Do not include S/MIME options attribute in signed message attributes.
SkipCertificateUsageCheck
Skip certificate usage check.
IgnoreInvalidTnefMessages
Ignore invalid TNEF messages when parsing mail messages.
SkipSenderCheck
Skip sender check.
KeepRawEntityBody
Keep the raw entity body when parsing MIME messages and make it accessible using GetRawContentStream()()().
DoNotCloseStreamAfterLoad
Keep the input stream open when Load(Stream) method is done.
DoNotPreloadAttachments
Try to conserve memory by not preloading attachment content when constructing a message.
DisableSinglePartHtmlWorkaround
Disable a workaround for broken mail clients such as Mac mail that don't correctly parse HTML-only messages. By default, MailMessage class constructs a single-part multipart/alternative structure to solve this. Enabling this flag turns off this behavior.
LoadMsgProperties
Load Outlook MSG properties into custom MIME headers. All these MIME headers start with X-Outlook- string.

See Also