extending example 'mailrule' for cheching e-mails

  • Thread starter Thread starter info
  • Start date Start date
I

info

Hello group,

While I try to learn something about mobile development, I found the
good working example 'mail rule', which can be found inside the
'Windows Mobile 5.0 SDK for Pocket PC'.

This code filters all incoming sms having the text 'zzz' inside it's
body.

As I understand the descriptions and the code, this should work also
with each incoming message which arrives via Active Synch or an POP3
Account. The only thing to do should be to add the registry key 'rules'
under the correct path (E.g. for Active Sync:
Software\\Microsoft\\Inbox\\Svc\\ActiveSync\\Rules)

But that seems to be not enough. The 'new' filter does't react on
incoming mails.

Does anybody knows a working solution? Thanks in advance.

Bernd M. Walter
 
The IMailRuleFiler API only works with the SMS transport. You can use MAPI
to get notified of events when a new message arrives - see
IMAPISession.Advise

Peter
 
Back
Top