Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to create custom rule for Outlook? I know i can import rwz file to outlook but I want to write a script-like rule with more advanced "thinking". is that possible? is there some manual for this?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

I've found two links about this issue:

  1. Extending Outlook Rules via Scripting
  2. How to create a custom rule using Visual Basic for Applications (VBA) in Outlook

I believe especially the first one would be helpful.

share|improve this answer

I believe there is another solution to those already presented. Especially if you are not afraid of a bit of coding.

The solution has been presented under similar question.

You can get it in full from Github project p0r.

It is using Powershell to automate outlook rules. It allows you to create your own rule just by choosing destination directory and modifying the conditions in the if statement.

Example rule that depends on the string contained in email subject could look like this:

# MOVING NOT IMPORTANT MESSAGES TO DELETED ITEMS
# ! MARKING EACH MOVED ITEM AS UNREAD
    IF ($Email.Subject -match "not important" -or $Email.Subject -match "not-important" ) {
        $Email.UnRead = $True
        $Email.Move($DeletedItems) | out-null
        display ([string]$Email.Subject ) ([string]"Red")
        continue
    }

You can use all the fields in the Email object to create your own custom rule. All email properties have been listed here.

Hope this will help you.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.