
Tech
Cloudflare Email Worker inbox: store every message in D1 in 30 lines
Originally published at guushu.com/notes . I keep the original updated, so this copy may lag.
Email Routing forwards a message and keeps nothing. If you want a copy you can search later, point the routing rule at a Worker, write the message to D1, and forward it on. That's a Cloudflare Email Worker inbox, about 30 lines of TypeScript.
Three self-hosted projects already ship that shape, two open source and one source-available. Below are the handler, the schema, the wrangler side, and tho...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to