SQL-Powered Email &
Automation Rules.
Write declarative SQL-style rules to organize inboxes, set flags, route folders, and dispatch signed webhooks. The parser, validator, and dry-run tester are real and working today — running compiled rules automatically against your live, syncing mailbox is the next milestone on the roadmap.
Compiles & dry-runs today — live firing is plannedLive Interactive NSQL Grammar Demo
Edit the NSQL rule below and run it against one sample message right here in your browser. This demo re-implements the grammar in JavaScript to preview the language — it isn't the compiled Rust engine, and rules like this don't act on your real mailbox yet.
Parser & dry-run: real today. Firing on synced mail: plannedDry-Run Evaluation Output
Edit the query in the editor and click "Run Dry-Run Preview" to parse your NSQL text and evaluate real condition matches against sample email envelopes.
Real Engine Defenses (Rust, Not This Demo)
These properties describe the actual nuncio-filter engine today — not the JavaScript grammar preview above, and not yet wired into live sync.
- Parameterized SQL binding — no string-concatenated queries.
- Static rejection of dangerous nested-quantifier regex patterns before a rule can be saved.
- Webhook dispatch blocks redirects and known private/loopback IP targets.
- Every matched rule and webhook dispatch is signed with HMAC-SHA256 and hash-chained into the WORM audit ledger.
Example NSQL Rule Catalog
Statements like these compile and dry-run successfully today — none of them act on a live mailbox yet.
VIP Priority Router
WHEN sender LIKE '%@example.com%' AND subject REGEXP '(Urgent|Deadline)' ON ACCOUNT '*@example.com' THEN MOVE TO 'vip-inbox', SET flagged = TRUE;
Routes urgent mail from a given domain into a VIP folder with immediate flagging.
Automated Newsletter Archiver
WHEN body LIKE '%unsubscribe%' THEN MOVE TO 'Newsletters', SET read = TRUE;
Identifies commercial newsletters, moves them out of the main inbox, and marks them as read.
Spam & Malicious Attachment Purge
WHEN header['X-Spam-Score'] > 5 OR attachment_name LIKE '%.exe' THEN MOVE TO 'Trash', SET read = TRUE;
Purges mail exceeding a spam threshold or carrying a hazardous binary attachment.
Signed Webhook Dispatcher
WHEN subject LIKE '%Deploy Alert%' THEN CALL WEBHOOK 'https://example.com/webhooks/deploy';
Dispatches an HMAC-SHA256-signed webhook to an external endpoint when a rule matches.