CLI for FastMail via JMAP

fix(email): parse fielded query operators in email search master

Previously the entire query string was sent as filter.text, so searches like 'from:alice@example.com' never matched anything. Add parseSearchQuery() which maps from:, to:, cc:, bcc:, subject:, and body: operators to their corresponding JMAP filter fields. Quoted values (subject:"hello world") are also supported. Any remaining text is passed as filter.text for full-text search.


+152 -6
3 changed files