Customizing Code that is Trigerred when Mail Rule executes

Here’s the scenario: A mail rule is created and enabled on a user’s mail database to move all incoming mail whose Subject field contains a the string “Integration Testing” to a specified folder.

The question: Where, in the mail template, is the code that actually moves incoming mail messages (that satisfy the condition) to the folder specified in the mail rule.

I would like to customize this code to log an error message if the folder specified in the mail rule no longer exists in the user’s mail database.

Any feedback will be appreciated. Thanks!

Subject: Customizing Code that is Trigerred when Mail Rule executes

Mail Rules are evaluated by the Mail Router. I don’t know of anyway to do what you want.

If the user deletes that folder, the mail rule will simply not run.

Subject: RE: Customizing Code that is Trigerred when Mail Rule executes

Thanks, Doug. That is what I suspected.

  • Ian