Create auto-file rule
create_inbox_ruleCreate an inbox rule that automatically moves incoming mail matching sender or subject criteria into a folder. Runs server-side in Exchange, so it keeps working when this tool isn't. At least one condition is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | Yes | Email address of the connected Outlook/Microsoft 365 mailbox to act on. Call list_authorized_mailboxes to see available options. | |
| markAsRead | No | Also mark matching mail as read | |
| displayName | Yes | Name for the rule, shown in Outlook | |
| fromAddresses | No | Match these senders, e.g. ["billing@acme.com"] | |
| subjectContains | No | Match if the subject contains any of these | |
| destinationFolderId | Yes | Folder to move matching mail into | |
| stopProcessingRules | No | Stop evaluating later rules on a match (default true) | |
| bodyOrSubjectContains | No | Match if the body or subject contains any of these |