xplorer-io / xplorers-api

API for all things Xplorers
MIT License
1 stars 0 forks source link

Setting up Cloudflare workers to forward emails to Slack channel #14

Open yashcrest opened 2 weeks ago

yashcrest commented 2 weeks ago

Resources:

helper repo: https://github.com/edevil/email_worker_parser/blob/main/src/index.js

cf forum: https://community.cloudflare.com/t/email-workers-access-to-attachments-body-or-raw-message/452913

email-parser npm package for email-worker https://docs.emailengine.app/how-to-parse-emails-with-cloudflare-email-workers/

cf docs: https://blog.cloudflare.com/announcing-route-to-workers/

image

formatting response to slack: https://api.slack.com/messaging/webhooks#advanced_message_formatting

yashcrest commented 2 weeks ago

cloudflare workers has been setup for this in a diff repo https://github.com/xplorer-io/cf-email-worker-slack.git

Implementing the logic of cf workers in this repo might not be useful as cf workers run in a edge server, so the build size should me minimum.