Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Decipher Client-Side Rules binary definition for Microsoft Outlook

Tags:

outlook

Outlook saves its client-side rule definitions in a binary blob in a hidden message in the Inbox folder of the default store for a profile. The hidden message is named "Outlook Rules Organizer" with a message class IPM.RuleOrganizer. The binary blob is saved in property 0x6802. The same binary blob is written to the exported RWZ file when you manually export the rules through the Rules and Alerts Wizard.

Has anyone deciphered the layout of this binary blob?

like image 765
Alex Avatar asked Sep 24 '08 14:09

Alex


People also ask

What are client rules in Outlook?

Client-only rules are rules that run only on your computer. These are rules that run in Outlook instead of on the Exchange server. Client-only rules can only run when Outlook is running.

How do I view Outlook client rules?

Click the File tab. Click Manage Rules & Alerts. Click Run Rules Now. In the Run Rules Now dialog box, under Select rules to run, select the check box next to each rule that you want to run.

Why does my Outlook rule says client-only?

As already mentioned, rule types can be either server-side or client-only. The rule type is determined by the conditions and actions defined upon rule creation. For example, if you define an action Permanently delete it or Mark it as read in your Outlook rule, the rule will be client-only.

Where are Outlook client side rules stored?

Client-only rules are stored within your pst/ost file or in . rwz files with the name of your profile. Since Outlook 2003, client-only rules are stored in the pst/ost file, not rwz files. So if you make a backup of your pst-file, you automatically have a backup of your rules too.


2 Answers

I had exactly the same problem, so I spent a (too) long time looking into the format.

I developed a library https://github.com/hughbe/OutlookRulesReader that contains a specification and reference implementation library (in Swift) for reading and writing Outlook Rules Files

A full description of the format can be found here

like image 25
H Bellamy Avatar answered Oct 02 '22 10:10

H Bellamy


Hmmm, that is a tough one...

Here's the server side rules protocol

According to this cryptic affair it looks as though you'll probably need to spend some time in Reflector as well...

Ah, these look closer to the mark and promising, give them a look:

Description of programming with Outlook rules

How to use the Rule.dll sample to create an inbox rule in Visual Basic

In general, Microsoft is explicitly saying it hasn't kept the documentation up on the rules in the last two versions and so the caveats...

like image 64
J Healy Avatar answered Oct 02 '22 11:10

J Healy