Clean the filed mail of one sender
clean_filed_mailMoves to the trash every email of one sender (an address, or @domain for a whole domain) that is already filed out of the inbox, in every connected mailbox, when it is noise, a notification or an automated alert. Because the sender is named, action words and known-contact status do not keep a mail; a protected category (a real conversation, a transaction, a legal notice) or a mail the user reclassified by hand still stays. The inbox is never touched, nor a mail the server still shows in the inbox. Returns how many were trashed, which were kept and why, how many are still in the inbox and how many were not found on the server. Never a permanent deletion; each email is undone by restore_to_inbox.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sender": "<sender>"
},
"name": "clean_filed_mail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Only the mail filed in this folder (see list_folders). | |
| sender | Yes | An email address, or @domain.com for every address of that domain. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cleanup | Yes |