Template Code Files

Topic Last Modified: 2006-06-11

The following Microsoft® Visual C++® files are provided with the protocol sink template and can be customized to provide your custom anti-spam functionality. These files are installed with the Exchange Server 2003 Software Development Kit (SDK) in the following directory: \Program Files\Exchange SDK\SDK\Samples\CustomFilterSink.

File Description

Samplefilter.cpp

Implements the OnSMTPInCommand protocol event sink. Samplefilter.cpp is the starting point for adding new pre-filtering checks.

RegConfig.cpp

Reads sample configuration data from the registry. This data can be read from the Active Directory configuration schema. RegConfig.cpp is the starting point for implementing your specific configuration.

MessageStream.cpp

The incoming message is represented as an abstraction known as a Mail Message Object. MessageStream.cpp provides a stream interface to the Mail Message object, providing access to the raw message data.

eodaction.cpp

The sample sink binds to the End Of Data event. Eodaction.cpp implements the action class for the sink. This file can be extended to add new actions to the sink. Eodaction.cpp would be the starting point for adding custom actions, such as "archive then delete".

Additionally, the following header files are provided:

  • cfmguid.h
  • cfmprops.h
  • epprops.h
  • ptntdefs.h