Outlook 2007: Is There an Event That Fires If a Rule Is Being Enabled or Disabled

1

I have written a bunch of macros that allow me to enable or disable a specific Outlook rule (i.e., delayed sending of messages) via a toolbar button. They also change the button's appearance to show me whether the rule is enabled or not. This works fine.

What I needed now would be an event or hook that would be allow me to run the macros when the rule is enabled or disabled in the usual Outlook dialog, so that the button on the toolbar could be synchronized accordingly.

Any ideas?

Christian

Posted 2014-11-28T13:26:03.883

Reputation: 13

I'm not sure I follow. Are you saying you want the state of the rules (enabled/disabled) in the Manage Rules And Alerts dialog referenced in your custom toolbar? – Dave – 2014-11-28T14:21:48.300

Yes, exactly. And my macro's button can already toggle a rule's state and display this state. But I don't know how to update the display when the rule is toggled in the conventional way. – Christian – 2014-12-01T08:58:17.000

I can think of 2 hacks, neither ideal. Put a timer on the ribbon control, checking the state of the rules every N seconds. Or, a refresh button in the ribbon control. – Dave – 2014-12-01T09:00:14.697

Answers

1

There is no such event. The only thing you can do is to check the state of your rules periodically. Another way is to write the COM add-in that will advise to IMsgStore's fnevObjectModified.

thims

Posted 2014-11-28T13:26:03.883

Reputation: 8 081

Okay, thanks for all your answers. I will now deliberate about whether this is worth the trouble. – Christian – 2014-12-01T12:26:08.747