Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rules reader for structure #9

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

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