I have an event sink that moves spam into the user's junk folder. The problem is that I want to check if the user has created their own rule to handle spam, and if so, not do anything. The easy ways to deal with rules programatically all seem to use CDO. As far as I can tell, CDO requires you to login to the mailbox using whatever the Windows security context currently is. Since the event sink runs under an admin account, this won't work. Am I wrong about this?
Idea #2: Rules are stored as hidden messages in the Inbox. It would seem that when a rule is created, and this hidden message is saved to the Inbox, that my event sink would fire. However this is not the case. Does anyone know why the event would not fire?
Does anyone have any idea how I could "see" rules via an event sink? I don't need to do anything other than check the name. Thanks.
Idea #2: Rules are stored as hidden messages in the Inbox. It would seem that when a rule is created, and this hidden message is saved to the Inbox, that my event sink would fire. However this is not the case. Does anyone know why the event would not fire?
Does anyone have any idea how I could "see" rules via an event sink? I don't need to do anything other than check the name. Thanks.