# Filtering

What happens to mail as it arrives: filter rules and Sieve scripts, the out-of-office auto-reply, verified forwarding, and the recipient's public disable link.

- `GET` [Get mailbox filtering settings](/docs/api/filtering/get_FilteringGet): Returns the mailbox's filtering switches: trustContacts, whether the mailbox's own address book acts as an implicit allow list against the spam verdict, and…
- `PUT` [Update mailbox filtering settings](/docs/api/filtering/put_FilteringPut): Sets the mailbox's filtering switches; a field the body leaves out keeps its value, and a body naming neither is refused.
- `GET` [Get mailbox filter rules](/docs/api/filtering/get_RulesGet): Returns the structured JSON filter rules for this mailbox, their active status, and the compiled Sieve script source.
- `PUT` [Save and activate filter rules](/docs/api/filtering/put_RulesPut): Replaces the JSON filter rules for this mailbox, compiles them into a Sieve script, and activates them for incoming mail delivery.
- `DELETE` [Delete mailbox filter rules](/docs/api/filtering/delete_RulesDelete): Removes all JSON filter rules and deactivates the rules script from incoming delivery.
- `GET` [Get Sieve engine capabilities and limits](/docs/api/filtering/get_SieveCapabilities): Returns supported Sieve extensions, maximum allowed scripts per mailbox, and maximum script size in bytes.
- `POST` [Validate a Sieve filter script without saving](/docs/api/filtering/post_SieveCheck): Dry-run validates Sieve script syntax and returns line and column numbers on error.
- `PUT` [Upload or replace a Sieve filter script](/docs/api/filtering/put_SievePut): Uploads or updates a Sieve script.
- `GET` [Get Sieve filter script source](/docs/api/filtering/get_SieveGet): Returns the raw Sieve source code and active status for a specific script.
- `DELETE` [Delete a Sieve filter script](/docs/api/filtering/delete_SieveDelete): Deletes a stored Sieve script from this mailbox.
- `GET` [List Sieve filter scripts](/docs/api/filtering/get_SieveList): Returns all Sieve filtering scripts stored in this mailbox along with their active status and update timestamps.
- `POST` [Rename a Sieve filter script](/docs/api/filtering/post_SieveRename): Renames an existing Sieve script while preserving its active status.
- `PUT` [Activate a Sieve filter script](/docs/api/filtering/put_SieveActivate): Designates a specific script as the active filter for incoming mail delivery in this mailbox.
- `GET` [Get active Sieve filter script name](/docs/api/filtering/get_SieveActiveGet): Returns the name of the currently active Sieve script, or null if no filter script is active.
- `DELETE` [Deactivate the active Sieve filter script](/docs/api/filtering/delete_SieveDeactivate): Disables filtering on incoming mail delivery so all incoming mail delivers directly without rules.
- `GET` [Get out-of-office auto-reply settings](/docs/api/filtering/get_VacationGet): Returns the mailbox's out-of-office vacation auto-responder configuration and state token for optimistic locking.
- `PUT` [Update out-of-office auto-reply settings](/docs/api/filtering/put_VacationPut): Configures or replaces the out-of-office auto-responder settings.
- `GET` [Get forwarding destinations and settings](/docs/api/filtering/get_ForwardingGet): Returns every address this mailbox has named for forwarding, with its verification state, plus the forward-everything setting.
- `PUT` [Forward all mail to a destination](/docs/api/filtering/put_ForwardingAllSet): Points forward-everything at a verified destination, and resumes it if it was paused.
- `PATCH` [Pause or resume forwarding](/docs/api/filtering/patch_ForwardingAllPause): Pauses or resumes forward-everything without touching the destination: a paused forward keeps its proof, so resuming never re-verifies.
- `DELETE` [Stop forwarding all mail](/docs/api/filtering/delete_ForwardingAllClear): Switches forward-everything off.
- `POST` [Add a forwarding destination](/docs/api/filtering/post_ForwardingDestinationAdd): Names an address and mails it an eight-character confirmation code, valid for 24 hours.
- `POST` [Confirm a forwarding destination](/docs/api/filtering/post_ForwardingDestinationVerify): Spends the code mailed to the destination.
- `DELETE` [Remove a forwarding destination](/docs/api/filtering/delete_ForwardingDestinationDelete): Removes the destination and clears the forward-everything setting if it pointed there.
- `GET` [Forwarding disable link (confirmation page)](/docs/api/filtering/get_ForwardingDisablePage): Public.
- `POST` [Forwarding disable link (revoke)](/docs/api/filtering/post_ForwardingDisableRevoke): Public.
