RblFilterIsMailOriginatingIPAddressInRblAsync Method

Namespace: MailBee.AntiSpam
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public Task<bool> IsMailOriginatingIPAddressInRblAsync(
	MailMessage msg,
	int receivedIndex,
	string rblHost
)

Parameters

msg
Type: MailBee.MimeMailMessage
A mail message with at least one Received header which contains the IP address the message came from.
receivedIndex
Type: SystemInt32
The zero-based index of Received header to examine. Usually, zero (denotes the most recent header).
rblHost
Type: SystemString
The RBL host name.

Return Value

Type: TaskBoolean
A task that represents the asynchronous operation. The value of TResult parameter is true if the originating IP address is black-listed; othwerwise, false. false is also set if no matching IPv4 address was found in the specified Received header.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionmsg is a null reference (Nothing in Visual Basic), or rblHost is a null reference or an empty string, or receivedIndex is negative or does not denote a valid index in msg's TimeStamps collection.
MailBeeExceptionAnother error occurred (e.g. timeout from DNS server).
See Also