Description: Description:
This sample demonstrates how to implement a MAPI Rule Client, a COM object
which can handle/filter incoming MAPI messages. Of particular relevance is
the implementation of IMailRuleClient and its ProcessMessage method. This
method is called by the MAPI subsystem when a message matching the Rule
Client抯 transport (SMS, ActiveSync, POP3) arrives. From within
ProcessMessage, you can reroute messages, delete messages, parse messages
and send custom data to other apps, or anything else you may need to do.
Currently, only SMS is supported as a transport for Rule Clients.
IMailRuleClient::Initialize must also be implemented to set message store
access privileges.
A Rule Client is a COM object (generally housed in a DLL) which implements
the IMailRuleClient interface. In order to work properly, it must be
registered in two places:
1.) Standard COM registration- HKEY_CLASSES_ROOT\CLSID
File list (Check if you may need any files):
Mapirule\mapirule.cpp
........\mapirule.def
........\MapiRule.sln
........\MapiRule.vcproj
........\readme.txt
........\Setupmapirule\SetupMapiRule.vddproj
........\Setupmapirule
Mapirule