outlook - Get/change safe senders list and blocked senders list in C# VSTO -
I am working on an Outlook 2010 add-in that will be expedited to users immediately before following the link found in an email. Need to do it. During this process, I want to give the user the option of trusting or intercepting the sender of email, thus I need to reach both lists. I know that the junk / spam email option is not being exposed by Outlook OM, although I was successful in fulfilling the task using redemption, unfortunately I do not have permission from my employer to use it, so I have another Find the way. I found this post () which indicates the direction of MAPI properties or registry keys. My priority would be to support MAPI, but I'm not sure whether the asset is related to what item will it be the default store property? The property is not set on the store itself, it's the Inbox folder (MAPIFolder.GetStorage Is accessible using the hidden message). Message and PR_RuleMsgProvider = "JunkEmailRule" You should be able to see hidden messages in OutlookSpy (click on IMAPifolder, go to "Affiliate Content" tab) data is stored in PR_EXTENDED_RULE_ACTIONS property. Outlook.Store obj = Application.Session.DefaultStore; Const string PR_SPAM_TRUSTED_SENDERS_W = "http://schemas.microsoft.com/mapi/proptag/0x001f0418"; Outlook.PropertyAccessor pa = obj.PropertyAccessor; String list = pa.GetProperty (PR_SPAM_TRUSTED_SENDERS_W) .ostring (); Unfortunately I'm getting an error message (translation in English) such as 'there is no such asset in the object'. In production, it must work with Outlook clients connected to Exchange 2007 mailboxes.
Comments
Post a Comment