MimeComplianceIssueGetSeverity(MimeComplianceViolation) Method

Get the severity of a MIME compliance violation.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static MimeComplianceSeverity GetSeverity(
	MimeComplianceViolation violation
)

Parameters

violation  MimeComplianceViolation
The MIME compliance violation.

Return Value

MimeComplianceSeverity
The severity.

Remarks

Gets how much practical harm the violation is likely to cause, assuming the message is being transmitted over the network.

Use GetSeverity(MimeComplianceViolation, MimeComplianceContext) instead if the message was read from a local message store, where a few violations are routine and harmless.

Exceptions

See Also