Add Cloudflare catch-all mail worker

This commit is contained in:
2026-07-22 13:40:09 +08:00
parent 0d98ffaf89
commit 5e993b5961
10 changed files with 1979 additions and 1 deletions
@@ -0,0 +1,12 @@
CREATE TABLE IF NOT EXISTS messages (
id TEXT PRIMARY KEY,
to_email TEXT NOT NULL,
from_email TEXT NOT NULL DEFAULT '',
subject TEXT NOT NULL DEFAULT '',
body TEXT NOT NULL DEFAULT '',
verification_code TEXT NOT NULL DEFAULT '',
received_at INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_messages_to_received
ON messages(to_email, received_at DESC);