infomaniak_set_mailbox_spam_policy
Update mailbox spam policy: configure spam movement, smart filtering folders, and admin note. Uses a two-phase commit to preview changes and confirm before applying safely.
Instructions
Update mailbox spam movement, smart filtering folders, and admin note. Two-phase commit: returns a current-state diff and confirmation token, then applies only if the policy state has not changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Mailbox admin note, max 80 characters, or null to clear it. | |
| mailbox_name | Yes | Local part of the mailbox (the part before @, e.g. 'info' for info@example.com). NOT the full email address. | |
| has_move_spam | No | Whether spam should be moved into the spam folder. | |
| mail_hosting_id | Yes | Mail hosting ID. Discover via infomaniak_list_mail_hostings. | |
| confirmation_token | No | Token returned by the prior plan response. Required on the apply phase. | |
| has_mail_filtering | No | Whether Infomaniak mail filtering folders are enabled. | |
| mail_filtering_folder_commercials | No | Folder used for commercial/newsletter filtering, or null to clear it. | |
| mail_filtering_folder_social_networks | No | Folder used for social-network filtering, or null to clear it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||