Loading...
Loading...
Build, deploy, and test Cloudflare Email Routing Workers with postal-mime MIME parsing, RFC 5322 mimetext replies, and AI auto-response loops. Use when building AI email agents, inbound email parsing, attachment extraction to R2, automated ticket creation, and safe forwarding rules.
npx skill4agent add rijans/agent-skills cloudflare-email-workersemail(message, env, ctx)postal-mimecloudflare:emailemail(message, env, ctx)postal-mimesend_emailEmailMessagecloudflare:emailmimetextIn-Reply-ToReferencesRe: telegram-serverless-botdiscord-activitieswrangler.jsoncwrangler.tomlsend_emailnodejs_compatpackage.jsonpostal-mimemimetextmailparser| # | Route / Task | Load Reference | Action Summary |
|---|---|---|---|
| 1 | Routing rules & handlers | routing-and-handlers.md | Implement |
| 2 | Inbound MIME & attachment parsing | inbound-mime-parsing.md | Parse |
| 3 | Outbound replies & threading | outbound-and-replies.md | Construct valid RFC 5322 emails with |
| 4 | Loop protection, spam & security | security-and-spam.md | Prevent auto-responder storms, verify SPF/DKIM headers, and defend against indirect prompt injections. |
W011message.fromAuthentication-Resultsspf=passdkim=passAuto-Submitted: auto-repliedAuto-Submitted: auto-generatedPrecedence: bulk/list/junkmessage.rawSizefromEmailMessagesend_emailIn-Reply-To: <Message-ID>References: <Message-ID>src/index.ts{ email: async (message, env, ctx) => ... }wrangler.jsoncsend_emailpostal-mimemimetextpackage.json