auto_organize
Automatically organize emails by moving them to specific mailboxes based on sender or subject keyword rules you define.
Instructions
Automatically organize emails based on rules (sender, subject keywords, etc.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | If true, only shows what would be organized without moving emails | |
| rules | Yes | Array of organization rules | |
| sourceMailbox | No | Source mailbox to organize (default: INBOX) | INBOX |
Input Schema (JSON Schema)
{
"properties": {
"dryRun": {
"default": false,
"description": "If true, only shows what would be organized without moving emails",
"type": "boolean"
},
"rules": {
"description": "Array of organization rules",
"items": {
"properties": {
"action": {
"properties": {
"moveToMailbox": {
"description": "Mailbox to move matching emails to",
"type": "string"
}
},
"required": [
"moveToMailbox"
],
"type": "object"
},
"condition": {
"properties": {
"fromContains": {
"description": "Move emails if sender contains this text",
"type": "string"
},
"subjectContains": {
"description": "Move emails if subject contains this text",
"type": "string"
}
},
"type": "object"
},
"name": {
"description": "Rule name",
"type": "string"
}
},
"required": [
"name",
"condition",
"action"
],
"type": "object"
},
"type": "array"
},
"sourceMailbox": {
"default": "INBOX",
"description": "Source mailbox to organize (default: INBOX)",
"type": "string"
}
},
"required": [
"rules"
],
"type": "object"
}