mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-20 15:49:48 +08:00
- Add daily request limit per IP in blacklist settings (1-1,000,000/day) - Refactor access control logic: merge blacklist and rate limit checks - Remove RATE_LIMIT_API_DAILY_REQUESTS env var, use database config instead - Move x-custom-auth check earlier in middleware chain - Add comprehensive English documentation (31 new guide pages) - Improve code structure and error handling 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
1.5 KiB
1.5 KiB
Configure Webhook
Note
If you want to use webhook, please bind
KVfirst and configure theworkervariableENABLE_WEBHOOK = trueIf you want webhook to have stronger email parsing capabilities, refer to Configure worker to use wasm for email parsing
Prerequisites
You need to set up your own webhook service or use a third-party platform. This service needs to be able to receive POST requests and parse json data.
This project uses songquanpeng/message-pusher as an example webhook service.
- You can use the service provided by msgpusher.com
- You can also self-host the
message-pusherservice, refer to songquanpeng/message-pusher
Admin Configure Global Webhook
Admin Allow Email to Use Webhook
Configure Webhook for a Specific Email
Webhook Data Format
To get the url, you need to configure the worker's FRONTEND_URL to your frontend address, or you can construct the url yourself using id = ${FRONTEND_URL}?mail_id=${id}
{
"id": "${id}",
"url": "${url}",
"from": "${from}",
"to": "${to}",
"subject": "${subject}",
"raw": "${raw}",
"parsedText": "${parsedText}",
"parsedHtml": "${parsedHtml}",
}


