Click or drag to resize
MimeKit

ParserOptionsMaxAddressGroupDepth Property

Get or set the maximum address group depth the parser should accept.

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

Property Value

Int32
The maximum address group depth.
Remarks

This option exists in order to define the maximum recursive depth of an rfc822 group address that the parser should accept before bailing out with the assumption that the address is maliciously formed. If the value is set too large, then it is possible that a maliciously formed set of recursive group addresses could cause a stack overflow.

See Also