Skip to content

Update rules reader for structure#9

Open
hughbe wants to merge 2 commits intomainfrom
structure-updates
Open

Update rules reader for structure#9
hughbe wants to merge 2 commits intomainfrom
structure-updates

Conversation

@hughbe
Copy link
Owner

@hughbe hughbe commented Nov 15, 2021

After a whole load of reverse engineering, I've discovered that Outlook's rule reader has the concept of "Parameters", which are essentially arguments passed to rules elements.

The top level structure of rules is unchanged

  • RulesHeader
  • Rule 0
    ...
  • Rule N
  • RulesFooter

The structure of a rule is unchanged

  • RuleHeader
  • Rule Element 0
  • ....
  • Rule Element N

However, the structure of a rule element is changed

  • Identifier
  • Number of Parameters
  • Parameter 0
  • ...
  • Parameter N

Notice that Outlook rules supports multiple parameters, whereas this wasn't explicitly supported in the structure

I've also added support for reading/writing separate versions, and done a whole bunch of associated cleanups and fixes

This PR still needs to be updated to include changes to the specification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant