MimeComplianceViolation Enumeration

An enumeration of potential MIME compliance violations.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public enum MimeComplianceViolation

Remarks

An enumeration of the ways in which a message may deviate from the Internet Message Format and MIME specifications, as reported to an IMimeComplianceLogger by MimeReader.

  Note

The UUEncode and UUEncoded spellings are deliberately distinct: UUEncode names a construct belonging to the uuencode format itself (the pretext, the file mode within the begin marker, the end marker) while UUEncoded names the encoded data.

Members

None 0 No violation.
BareCarriageReturnInHeader 1 A bare carriage return character was found in a MIME part or message header.
BareLinefeedInHeader 2 A bare linefeed character was found in a MIME part or message header.
BareLinefeedInBody 3 A bare linefeed character was found in the body of the message.
OversizedLine 4 A line was found that exceeded the maximum line length permitted by the Internet Message Format.
Unexpected8BitBytesInHeader 5 A MIME part or message header contained 8-bit bytes where only 7-bit bytes were expected.
Unexpected8BitBytesInBody 6 A MIME part's body contained 8-bit content where only 7-bit content was expected.
UnexpectedNullBytesInHeader 7 A MIME part or message header contained illegal null (0x00) bytes.
UnexpectedNullBytesInBody 8 A MIME part's body contained null (0x00) bytes without specifying a binary transfer encoding.
InvalidHeader 9 A MIME part or message header contained control (or whitespace) characters in the field name.
IncompleteHeader 10 A MIME part or message header ended prematurely at the end of the stream.
BlankHeaderContinuationLine 11 A folded MIME part or message header contained a continuation line made up entirely of whitespace.
RepeatedContentType 12 A MIME part contained multiple Content-Type headers.
RepeatedContentDisposition 13 A MIME part contained multiple Content-Disposition headers.
RepeatedContentId 14 A MIME part contained multiple Content-Id headers.
RepeatedContentTransferEncoding 15 A MIME part contained multiple Content-Transfer-Encoding headers.
RepeatedDate 16 The message contained more than one Date header field.
RepeatedFrom 17 The message contained more than one From header field.
RepeatedSender 18 The message contained more than one Sender header field.
RepeatedReplyTo 19 The message contained more than one Reply-To header field.
RepeatedTo 20 The message contained more than one To header field.
RepeatedCc 21 The message contained more than one Cc header field.
RepeatedBcc 22 The message contained more than one Bcc header field.
RepeatedMessageId 23 The message contained more than one Message-Id header field.
RepeatedInReplyTo 24 The message contained more than one In-Reply-To header field.
RepeatedReferences 25 The message contained more than one References header field.
RepeatedSubject 26 The message contained more than one Subject header field.
RepeatedReturnPath 27 The message contained more than one Return-Path header field.
RepeatedResentDate 28 A block of resent header fields contained more than one Resent-Date header field.
RepeatedResentFrom 29 A block of resent header fields contained more than one Resent-From header field.
RepeatedResentSender 30 A block of resent header fields contained more than one Resent-Sender header field.
RepeatedResentTo 31 A block of resent header fields contained more than one Resent-To header field.
RepeatedResentCc 32 A block of resent header fields contained more than one Resent-Cc header field.
RepeatedResentBcc 33 A block of resent header fields contained more than one Resent-Bcc header field.
RepeatedResentMessageId 34 A block of resent header fields contained more than one Resent-Message-Id header field.
MissingDate 35 The message did not contain a Date header field.
MissingFrom 36 The message did not contain a From header field.
MissingMessageId 37 The message did not contain a Message-Id header field.
MissingMimeVersion 38 The message contained MIME header fields but no MIME-Version header field.
InvalidContentType 39 A Content-Type header value was not valid.
InvalidContentTransferEncoding 40 A Content-Transfer-Encoding header value was not valid.
IllegalMessageRfc822ContentTransferEncoding 41 A Content-Transfer-Encoding header for a message/rfc822 part contained an illegal value.
IllegalMultipartContentTransferEncoding 42 A Content-Transfer-Encoding header for a multipart contained an illegal value.
MissingMultipartBoundaryParameter 43 A boundary parameter was missing from a multipart Content-Type header.
InvalidMultipartBoundaryParameter 44 A boundary parameter in a multipart Content-Type header was not valid.
InvalidParameter 45 A MIME parameter declaration was malformed.
InvalidRfc2231Parameter 46 An RFC 2231 encoded parameter value was malformed.
EncodedWordInParameter 47 A MIME parameter value contained RFC 2047 encoded-word syntax.
RepeatedBoundaryParameter 48 A Content-Type header contained repeated boundary parameter declarations.
RepeatedFilenameParameter 49 A Content-Type name or Content-Disposition filename parameter was repeated.
RepeatedParameter 50 A MIME parameter other than a boundary or filename parameter was repeated.
MissingParameterSegment 51 An RFC 2231 parameter continuation was missing one or more segments.
InvalidEncodedWord 52 A header contained malformed RFC 2047 encoded-word syntax.
InvalidEncodedWordPlacement 53 An address header contained an encoded-word in a prohibited location.
ExcessiveAngleBracketsInAddress 54 An address contained more angle brackets than the one pair that delimits an angle-addr.
UnbalancedAngleBracketsInAddress 55 An address had an opening angle bracket without a closing one, or a closing bracket without an opening one.
UnbalancedQuotesInAddress 56 An address contained a quoted-string that was never closed.
UnbalancedParenthesesInAddress 57 An address contained an unbalanced parenthesis in a comment.
UnquotedDisplayName 58 The display-name of an address contained a special character that should have been quoted.
AddressInDisplayName 59 The display-name of a mailbox was itself shaped like an address.
UnquotedAddressInDisplayName 60 The unquoted display-name of a mailbox was itself shaped like an address.
AddressInGroupDisplayName 61 The display-name of an address group was itself shaped like an address.
UnquotedAddressInGroupDisplayName 62 The unquoted display-name of an address group was itself shaped like an address.
InvalidLocalPart 63 The local-part of an address was not a valid dot-atom or quoted-string.
MissingAddressSeparator 64 Two addresses in an address list were not separated by a comma.
AmbiguousMailboxBoundary 65 An address list contained two addresses whose boundary was ambiguous.
ExtraneousCommaInAddressList 66 An address list contained a comma that did not separate two addresses.
ObsoleteRouteAddress 67 An address used the obsolete source route syntax.
AddressWithoutDomain 68 An address consisted of a local-part with no domain.
ObsoleteDomainSyntax 69 The domain of an address used the obsolete syntax that allows comments and whitespace between its parts.
InvalidDomain 70 The domain of an address was not a valid dot-atom.
TrailingDotInDomain 71 The domain of an address ended with a dot.
WhitespaceInDomainLiteral 72 A domain-literal contained whitespace.
InvalidCharacterInDomainLiteral 73 A domain-literal contained a character that the domain-literal syntax does not permit.
Invalid8BitAddress 74 An address contained 8-bit bytes that were not valid UTF-8.
MissingGroupTerminator 75 An address group was not terminated with a semi-colon.
NonConformantAddress 76 An address did not conform to the address syntax defined by rfc5322.
NullByteInAddress 77 An address contained a null byte.
NullByteInDisplayName 78 The display-name of an address or group contained a null byte.
LineBreakInAddress 79 A line break appeared inside a local-part or domain.
ControlCharacterInAddress 80 An address contained a control character.
Iso2022SequenceInLocalPart 81 The local-part of an address contained an ISO-2022 shift or escape sequence.
EmptyGroupName 82 An address group had an empty name.
NestedAddressGroup 83 An address group was nested inside another address group.
MissingBodySeparator 84 An empty line separating the headers from the body was missing.
MissingMultipartBoundary 85 A multipart boundary was missing.
MimeDepthLimitExceeded 86 The MIME structure was nested more deeply than the parser allows.
IncompleteBase64Quantum 87 The base64 encoded content of a MIME part ended with an incomplete quantum.
InvalidBase64Character 88 The base64 encoded content of a MIME part contained invalid characters.
InvalidBase64Padding 89 The base64 encoded content of a MIME part contained invalid padding.
Base64CharactersAfterPadding 90 The base64 encoded content of a MIME part contained characters after the padding.
ObsoleteBase64Comment 91 The base64 encoded content of a MIME part contained an obsolete comment.
InvalidQuotedPrintableEncoding 92 The quoted-printable encoded content of a MIME part contained an invalid hex sequence after an '=' character.
InvalidQuotedPrintableSoftBreak 93 The quoted-printable encoded content of a MIME part contained an invalid soft-break sequence.
InvalidUUEncodePretext 94 The uuencoded content of a MIME part contained non-whitespace content before the begin marker.
InvalidUUEncodeFileMode 95 The uuencoded content of a MIME part had an invalid file mode in the begin marker.
InvalidUUEncodedContent 96 The uuencoded content of a MIME part contained invalid characters or was otherwise malformed.
InvalidUUEncodedLineLength 97 The uuencoded content of a MIME part had an invalid encoded line length.
IncompleteUUEncodedLine 98 The uuencoded content of a MIME part contained an incomplete encoded line.
InvalidUUEncodedLineExtraData 99 The uuencoded content of a MIME part had extra data beyond the end of a uuencoded line.
InvalidUUEncodeEndMarker 100 The uuencoded content of a MIME part contained non-whitespace content after the end marker.
IncompleteUUEncodedContent 101 The uuencoded content of a MIME part did not properly end.
TooManyComplianceIssues 2,147,483,647 Too many compliance issues were detected and the remainder were suppressed.

See Also

Reference