A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

List Rules Programatically



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 17th 08, 12:51 PM posted to microsoft.public.outlook.program_vba
dan artuso
external usenet poster
 
Posts: 5
Default List Rules Programatically

Hi,
How can I list the rules associated with a profile programmatically?
Thanks,

Dan



  #2  
Old July 17th 08, 01:36 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default List Rules Programatically

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.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"dan artuso" wrote:

Hi,
How can I list the rules associated with a profile programmatically?
Thanks,

Dan




  #3  
Old July 22nd 08, 09:33 AM posted to microsoft.public.outlook.program_vba
Markus Brandl
external usenet poster
 
Posts: 1
Default List Rules Programatically

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,

Markus

"Sue Mosher [MVP-Outlook]" wrote:

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.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"dan artuso" wrote:

Hi,
How can I list the rules associated with a profile programmatically?
Thanks,

Dan




  #4  
Old July 22nd 08, 01:47 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default List Rules Programatically

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/micro...b82987d469a37d
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
http://www.outlookcode.com/jumpstart.aspx



"Markus Brandl" wrote:

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,

Markus

"Sue Mosher [MVP-Outlook]" wrote:

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.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"dan artuso" wrote:

Hi,
How can I list the rules associated with a profile programmatically?
Thanks,

Dan




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rules: messages from people in distribution list CJ[_3_] Outlook - General Queries 4 February 14th 08 04:17 PM
Message rules & blocked user list Doug W. Outlook Express 4 February 5th 08 06:49 AM
Complex Outlook rules - programatically? [email protected] Outlook - General Queries 3 June 27th 06 06:04 PM
Programatically Set Default Address List CQ Outlook - Installation 0 June 21st 06 07:52 PM
message rules - can I import a list of email addresses? Alynn Baker Outlook Express 3 January 27th 06 02:36 PM


All times are GMT +1. The time now is 12:26 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.