Assuming you have Outlook 2007, which is the first version with iterate the
Namespace.Stores collection and for each store call Store.GetRules. Then
iterate the resulting Rules collection. Listing 22.2 in my lastest book
provides a detailed code sample; the page in my signature has a link for
downloading the book's code.
I think this does not list the Oof rules set. How can I list or modify these
rules.
I am trying to delete the IPM.Note.Rules.Ooftemplate.Microsoft entries.
Thanks,
That is indeed a completely different issue. The OOF response message is a
hidden message in the Inbox with a
MessageClass of "IPM.Note.Rules.OofTemplate.Microsoft". Access it in Outlook
2007 as the StorageItem object. See http://groups.google.com/group/micr...read/thread/2ae06d497e092def/95b82987d469a37d
for an earlier discussion here of the OOF rule.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers