For example, how do I show or hide the Outlook envelope icon from an Outlook Rule?
The envelope icon option is set by going to:
- Tools -> Options...
- E-mail Options
- Advanced E-mail Options
- Show an envelope icon in the notification area
The reason why I say programmatically is because none of the standard Rule actions apply. (The "Clear the message flag" action doesn't seem to work. Also, there's no "Set the message flag" action.)
This means that the solution will probably be in the form of a VBA script, Add-in or custom action. As a last resort, I'll write my own task bar notification.
In the documentation, I found IMsoEnvelope, but that is only for sending email from other Office applications.