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
14
15
16
{
  "name": "date-specific-after",
  "description": "after:YYYY-MM-DD parses as DateRange{ After, Specific }.",
  "spec": {
    "source": "Gmail search operators",
    "url": "https://support.google.com/mail/answer/7190",
    "behavior": "after: matches messages received strictly after the given date."
  },
  "input": "after:2026-01-01",
  "expected_ast": {
    "DateRange": {
      "bound": "after",
      "date": { "Specific": "2026-01-01" }
    }
  }
}