update_rule
Update an existing Mail.app rule using its RuleId from list_rules. Backup is created before changes; restart Mail.app to apply.
Instructions
Update an existing Mail.app rule by its RuleId (use list_rules to find IDs). A timestamped backup is made before writing. Mail.app may need to be restarted for changes to take effect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New display name. | |
| actions | No | Partial actions update — only supplied fields are changed. | |
| rule_id | Yes | The RuleId of the rule to update (from list_rules). | |
| match_all | No | true = ALL (AND); false = ANY (OR). | |
| conditions | No | Replace the full conditions list. Omit to leave unchanged. |