Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IMailRuleClient

Windows Mobile 6.5
4/8/2010

The IMailRuleClient interface allows you to implement a Mail Rule Client that can process incoming messages. Currently, only Short Message Service (SMS) text messages can be processed. Processed messages can be moved, modified, and deleted by the client.

Bb446125.note(en-us,MSDN.10).gifNote:
The IMailRuleClient interface supersedes the functionality of the deprecated SmsReadMessage function.

Implement IMailRuleClient when you want to process incoming Short Message Service (SMS) text messages at the client.

Use this interface to filter incoming Short Message Service (SMS) text messages.

IMailRuleClient methods Description

IMailRuleClient::Initialize

Initializes the mail rule client.

IMailRuleClient::ProcessMessage

Processes incoming messages, which can be moved, modified, or deleted.

A mail rule client, in addition to registering as a COM object, must add the following item to the registry:

[HKEY_LOCAL_MACHINE\Software\Microsoft\Inbox\Svc\<TransportName>\Rules]
<CLSID> = dword: 1

Replace <CLSID> with the class identifier (CLSID) of the mail rule client, and replace <TransportName> with the transport name that the rule client is registering for. Currently, Short Message Service (SMS) is the only supported value for <TransportName>. When Messaging starts, it calls Initialize for every transport that is associated with <TransportName>.

Bb446125.note(en-us,MSDN.10).gifNote:
The MAPI Rules sample requires privileged access.

Headercemapi.h
Librarycemapi.lib
Windows Embedded CEWindows CE .NET 4.2 and later
Windows MobilePocket PC for Windows Mobile 2003 and later, Smartphone for Windows Mobile 2003 and later

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.