create_rule
Create an Outlook inbox rule to automatically move, delete, mark read, or junk future incoming mail that matches sender or subject conditions. It does not apply to messages already received.
Instructions
Create an inbox rule that acts on future incoming mail matching the conditions (at least one of fromAddresses, senderContains, subjectContains). Actions: move (needs destinationFolderId, an id or a name like archive), delete (to Deleted Items), markRead, junk (to Junk Email). Does not affect mail already received.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| displayName | Yes | ||
| fromAddresses | No | Exact sender email addresses | |
| senderContains | No | Text the sender address must contain, e.g. "@example.com" | |
| subjectContains | No | ||
| destinationFolderId | No | Folder id or well-known name; required for action "move" | |
| stopProcessingRules | No | Stop evaluating later rules after this one (default true) |