MessageInterception Limit to ContactList

  • Thread starter Thread starter oldsap
  • Start date Start date
O

oldsap

How do i write a MessageCondition for Mthe MessageInterceptor so that
only numbers in my contactlist are allowed or numbers that are not in
the contactlist will be automatically deleted (NotifyandDelete).
 
There isn't a built in way to do this, You can capture all messages by not
supplying a rule, and then lookup the number on each incoming message, but
you'll need to manually delete the message (which you can't do just with the
WM5.0 managed APIs) and even then this might not be quick enough to avoid
the user prompt.
Your safest bet is to write your own IMailRuleClient native filter dll.

Peter
 
In order to find if the contact belongs to your contact list, you can
use POOM (using Microsoft.WindowsMobile.PocketOutlook); then you could
access to your contacts and check manually if the number is one of your
contact.

BR


Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/

Peter Foot [MVP] a écrit :
 
Fabien said:
In order to find if the contact belongs to your contact list, you can
use POOM (using Microsoft.WindowsMobile.PocketOutlook); then you could
access to your contacts and check manually if the number is one of your
contact.

BR


Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/

Peter Foot [MVP] a écrit :

Thanks.
is IMailRuleClient only written in C++?
ive checked the sample MapiRule and it filters the body of the sms
only. Does anybody have a sample for filtering the sms sender?
 
Back
Top