DeliveryStatusParserProcessWithTimeout Method
Examines the specified MailMessage for delivery status notification (DSN) and returns its details, limiting the amount of time to process each bounce format.

Namespace: MailBee.BounceMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public Result ProcessWithTimeout(
	MailMessage message,
	int timeout


Type: MailBee.MimeMailMessage
The MailMessage object to be examined.
Type: SystemInt32
Maximum timeout in milliseconds to get response for one template. In most cases, value of 300 is enough. You may increase it for very slow systems.

Return Value

Type: Result
DSN details extracted from the specified e-mail message, or a null reference (Nothing in Visual Basic) if the message does not contain any DSN.
MailBeeInvalidArgumentExceptionmessage is a null reference (Nothing in Visual Basic) or timeout is less than 0.
This is a workaround method can be used in rare cases when the standard method Process(MailMessage) takes too long time if it encounters a specific bounce e-mail which is hard to process with the current regular expression (each bounce format is represented by a regular expression). In such cases, the method simply aborts the current regular expression check and continues to the next one. No exception is thrown.
See Also