Click or drag to resize
MimeKit

ParserOptionsMaxMimeDepth Property

Gets or sets the maximum MIME nesting depth the parser should accept.

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

Property Value

Type: 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 rdeeply nested multipart MIME parts could cause a stack overflow.

See Also