create_rule
Create a custom rule in Mail.app with conditions and actions, such as moving or flagging messages. A backup of existing rules is made before saving.
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. |