mail-query 0.1.0

Parser and typed AST for Gmail-style email search queries. Backend-agnostic.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "name": "field-from",
  "description": "field:value parses as a Field node with the typed QueryField variant.",
  "spec": {
    "source": "Gmail search operators",
    "url": "https://support.google.com/mail/answer/7190",
    "behavior": "from:value restricts results to messages whose From address matches."
  },
  "input": "from:alice@example.com",
  "expected_ast": {
    "Field": { "field": "from", "value": "alice@example.com" }
  }
}