manage-rules
Manage Outlook inbox rules to organize emails by listing, creating, reordering, or deleting automated filtering rules based on sender, subject, attachments, and actions like moving to folders or marking as read.
Instructions
Manage inbox rules. action=list (default) lists rules. action=create creates a new rule. action=reorder changes rule execution priority. action=delete removes a rule.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Action to perform (default: list) | |
| includeDetails | No | Include detailed rule conditions and actions (action=list) | |
| name | No | Name of the rule to create (action=create, required) | |
| fromAddresses | No | Comma-separated sender email addresses (action=create) | |
| containsSubject | No | Subject text the email must contain (action=create) | |
| hasAttachments | No | Apply to emails with attachments (action=create) | |
| moveToFolder | No | Folder to move matching emails to (action=create) | |
| markAsRead | No | Mark matching emails as read (action=create) | |
| isEnabled | No | Enable rule after creation, default: true (action=create) | |
| sequence | No | Execution order, lower numbers run first (action=create default: 100, action=reorder required) | |
| ruleName | No | Name of the rule (action=reorder required, action=delete alternative to ruleId) | |
| ruleId | No | ID of the rule to delete (action=delete) |