Groups | Blog | Home
all groups > dotnet compact framework > january 2007 >

dotnet compact framework : MessageInterception Limit to ContactList


oldsap
1/10/2007 10:56:50 PM
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).
Fabien
1/11/2007 12:11:10 PM
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 =E9crit :
[quoted text, click to view]
Peter Foot [MVP]
1/11/2007 3:09:38 PM
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

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

[quoted text, click to view]
oldsap
1/11/2007 4:16:02 PM

[quoted text, click to view]

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?
AddThis Social Bookmark Button