buildSearchString
buildSearchString(
query):string
Defined in: src/provider/mcp/query.ts:24
Compile a SearchQuery to Fastmail’s Gmail-style search DSL.
Session-proven quirks encoded here:
-from:takes LITERAL addresses only — domain negation is silently ignored by the server, so callers must re-check keep-lists client-side (caps.serverSideNotFrom === ‘address-only’).after:YYYY-MM-DDis the only date operator that works.- Operator values are whitespace-tokenized by the server: an unquoted
spaced label (
in:Needs action) parses asin:Needsplus the free-text termaction— silently wrong scope. Values containing whitespace are therefore double-quoted.textstays unquoted on purpose: it is a bag of free-text terms, not a phrase.
Parts are space-joined in stable order: in, text, from, notFrom…, after, is:unread.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”string