Click or drag to resize
MimeKit

ParserOptionsMaxMimeDepth Property

Get or set the maximum MIME nesting depth the parser should accept.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public int MaxMimeDepth { get; set; }

Property Value

Int32
The maximum MIME nesting depth.
Remarks

This option exists in order to define the maximum recursive depth of MIME parts that the parser should accept before treating further nesting as a leaf-node MIME part and not recursing any further. If the value is set too large, then it is possible that a maliciously formed set of deeply nested multipart MIME parts could cause a stack overflow.

See Also