create_rule
Define email rules with conditions and actions such as move, copy, mark read, or run scripts to automate mail handling in Mail.app.
Instructions
Create a new Mail.app rule. A timestamped backup of SyncedRules.plist is made before writing. Mail.app may need to be restarted for the rule to take effect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the rule. | |
| actions | Yes | At least one action should be set. | |
| match_all | No | true = ALL conditions must match (AND); false = ANY (OR). | |
| conditions | Yes | One or more match conditions. |