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.
TypeScript SDK
openemail.filteringTypeScript SDKopenemail.rulesTypeScript SDKopenemail.sieveTypeScript SDKopenemail.vacationTypeScript SDKopenemail.forwarding- GETGet mailbox filtering settingsReturns the mailbox's filtering switches: trustContacts, whether the mailbox's own address book acts as an implicit allow list against the spam verdict, and…
- PUTUpdate mailbox filtering settingsSets the mailbox's filtering switches; a field the body leaves out keeps its value, and a body naming neither is refused.
- GETGet mailbox filter rulesReturns the structured JSON filter rules for this mailbox, their active status, and the compiled Sieve script source.
- PUTSave and activate filter rulesReplaces the JSON filter rules for this mailbox, compiles them into a Sieve script, and activates them for incoming mail delivery.
- DELETEDelete mailbox filter rulesRemoves all JSON filter rules and deactivates the rules script from incoming delivery.
- GETGet Sieve engine capabilities and limitsReturns supported Sieve extensions, maximum allowed scripts per mailbox, and maximum script size in bytes.
- POSTValidate a Sieve filter script without savingDry-run validates Sieve script syntax and returns line and column numbers on error.
- PUTUpload or replace a Sieve filter scriptUploads or updates a Sieve script.
- GETGet Sieve filter script sourceReturns the raw Sieve source code and active status for a specific script.
- DELETEDelete a Sieve filter scriptDeletes a stored Sieve script from this mailbox.
- GETList Sieve filter scriptsReturns all Sieve filtering scripts stored in this mailbox along with their active status and update timestamps.
- POSTRename a Sieve filter scriptRenames an existing Sieve script while preserving its active status.
- PUTActivate a Sieve filter scriptDesignates a specific script as the active filter for incoming mail delivery in this mailbox.
- GETGet active Sieve filter script nameReturns the name of the currently active Sieve script, or null if no filter script is active.
- DELETEDeactivate the active Sieve filter scriptDisables filtering on incoming mail delivery so all incoming mail delivers directly without rules.
- GETGet out-of-office auto-reply settingsReturns the mailbox's out-of-office vacation auto-responder configuration and state token for optimistic locking.
- PUTUpdate out-of-office auto-reply settingsConfigures or replaces the out-of-office auto-responder settings.
- GETGet forwarding destinations and settingsReturns every address this mailbox has named for forwarding, with its verification state, plus the forward-everything setting.
- PUTForward all mail to a destinationPoints forward-everything at a verified destination, and resumes it if it was paused.
- PATCHPause or resume forwardingPauses or resumes forward-everything without touching the destination: a paused forward keeps its proof, so resuming never re-verifies.
- DELETEStop forwarding all mailSwitches forward-everything off.
- POSTAdd a forwarding destinationNames an address and mails it an eight-character confirmation code, valid for 24 hours.
- POSTConfirm a forwarding destinationSpends the code mailed to the destination.
- DELETERemove a forwarding destinationRemoves the destination and clears the forward-everything setting if it pointed there.
- GETForwarding disable link (confirmation page)Public.
- POSTForwarding disable link (revoke)Public.
Test address list policy against an address POST
Evaluates inbound or outbound address list policies for a specific address to test whether it would be allowed, blocked, or bypassed.
Get mailbox filtering settings GET
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…