Page tree
Skip to end of metadata
Go to start of metadata

Register a new SMTP filter in the filter chain.

Syntax

Parameters

nPriority
Type: UINT

Specifies where in the filter chain this new filter will reside

PriorityDescription
SMTP_FILTER_PRIORITY_CLASS_SOURCEFor filters that need to see messages as soon as they leave the source
SMTP_FILTER_PRIORITY_CLASS_CACHEFor filters that provide cache like functionality
SMTP_FILTER_PRIORITY_CLASS_NORMALFor normal filters like scanners and categorisers
SMTP_FILTER_PRIORITY_CLASS_EDGEFor filters that need to see messages and data just before it goes out

The filter might not actually be inserted at this priority if a filter already exists there. In this case the next highest available priority is chosen. The return value from this function informs you of the actual priority.

strName
Type: LPCWSTR
The user visible name of the filter
strDescription
Type: LPCWSTR
The user visible description of the filter
pInterface

Pointer to a SMTPFilterProviderInterface for the framework to use to interface with your filter

Return Value

Type: unsigned int
The actual priority that the filter was inserted with

Remarks

None

Examples

None

See Also