![]() ![]() Any rules created by using the Rules and Alerts Wizard that are applied to messages, which include mail items, meeting requests, task requests, documents, delivery receipts, read receipts, voting responses, and out-of-office notices, can also be created programmatically.Ī rule can execute on the Exchange server or on the Outlook client, provided that the current user’s mailbox is hosted on an Exchange server. The Rules object model does not support all rules that you can create by using the Rules and Alert Wizard in the Outlook user interface, but it supports the most commonly used rule actions and conditions. The RuleAction and RuleCondition objects, their collection objects, and derived action and condition objects are also used to further support editing rule actions and rule conditions. When a rule is created, the RuleType property is specified, and cannot be changed without deleting and re-creating the rule with a different RuleType property. By using the Rules collection and the Rule object, you can also access, add, and delete rules defined for a session.Ī Rule object has a RuleType property that indicates whether the rule is a send or receive rule. By using the Rules object model, you can programmatically add, edit, and delete rules. The Rules object model, which includes a Rule object that represents a rule in Outlook, allows you to create rules programmatically to enforce a certain organizational scheme, create a specific rule that is unique to your solution, or ensure that certain rules are deployed to a group of users. You can also categorize your mail and then use search folders to aggregate the mail by category. Or, you can create a subfolder hierarchy that corresponds to the sender of the message. ![]() For example, you can create a subfolder hierarchy that organizes unread mail and read mail by subject area. ![]() There are many ways you can implement rules to enforce your own organizational schemes when you organize items in your mailbox. Outlook rules can operate either server-side or client-side, depending on the type of account and rule. The following code example is an excerpt from Programming Applications for Microsoft Office Outlook 2007. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |