Filters
Order is the whole point
Filters run top to bottom byposition, and the list always comes back in that
order. A rule that files everything from a domain into Archive, sitting above a
rule that stars invoices from that domain, means the invoices are never
starred.
A new rule goes to the end unless you say otherwise. Appending cannot change
what existing rules do; prepending silently can.
argument is required by exactly two actions and refused by the other two.move needs a folder and label needs a label. star and read act on the
message itself and take nothing — sending one is refused rather than ignored,
because a silently dropped argument looks like a rule that works and does the
wrong thing.The same check runs on PATCH, against the result rather than the change.
Switching a move filter to star without clearing its argument is the obvious
mistake, and it is caught with a sentence rather than a constraint name.Blocked senders
nuisance@example.com) or a domain
with a leading @ (@example.com). Anything else is refused.
Patterns are stored lowercased, which is what makes them match — an address
pasted out of a signature is routinely mixed case, and a block that silently
failed because somebody typed a capital is worse than no block at all. The
response reports the stored form.
DELETE accepts the pattern as well as the id, since the pattern is what
you have in hand. Blocking something already blocked succeeds and changes
nothing: you wanted them refused, and they are.
There is no PATCH. Editing a block into a different one is deleting it and
making another, and a half-applied edit would leave a sender neither blocked nor
allowed for as long as it took to notice.
Forwarding and auto-reply
Set the destination before turning it on. Enabling forwarding with nowhere
to forward to, or an auto-reply with nothing to say, is refused rather than
stored as a setting that does nothing. Both can be done in one call.
since is re-stamped every time you switch one on. It is what stops a
backlog going out the moment forwarding starts — only mail arriving after it is
relayed. Keeping an older stamp would mean enabling forwarding today relayed
everything received since the first time it was ever enabled.Organization rules, not personal ones
Like everything else a key touches, these are the organization’s. Filters and blocks a person makes in the web app belong to that person and are invisible here; ones a key creates are visible to your team in the dashboard.Errors
See Errors for the full response shape.