mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-04-26 06:15:52 +03:00
[PR #553] [MERGED] feat: add JUNK_MAIL_CHECK_LIST for check exits and passed item && add ParsedEmailContext to cache the parsed Email #618
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudflare_temp_email#618
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/553
Author: @dreamhunter2333
Created: 1/11/2025
Status: ✅ Merged
Merged: 1/11/2025
Merged by: @dreamhunter2333
Base:
main← Head:feature/dev📝 Commits (2)
3ec451dfeat: Junk mail only check JUNK_MAIL_FORCE_PASS_LIST3881e6cfeat: addJUNK_MAIL_CHECK_LISTfor check exits and passed item && addParsedEmailContextto cache the parsed Email📊 Changes
12 files changed (+100 additions, -56 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
vitepress-docs/docs/en/cli.md(+2 -0)📝
vitepress-docs/docs/zh/guide/cli/worker.md(+3 -1)📝
worker/src/admin_api/mail_webhook_settings.ts(+3 -3)📝
worker/src/admin_api/worker_config.ts(+1 -0)📝
worker/src/common.ts(+16 -9)📝
worker/src/email/check_junk.ts(+22 -12)📝
worker/src/email/index.ts(+25 -20)📝
worker/src/mails_api/webhook_settings.ts(+3 -3)📝
worker/src/telegram_api/telegram.ts(+7 -6)📝
worker/src/types.d.ts(+13 -1)📝
worker/wrangler.toml.template(+3 -1)📄 Description
PR Type
enhancement, bug fix
Description
Introduced
ParsedEmailContextto cache parsed email content.Added
JUNK_MAIL_CHECK_LISTfor conditional junk mail checks.Updated functions to use
ParsedEmailContextinstead of raw email strings.Enhanced error handling in email processing functions.
Changes walkthrough 📝
8 files
Use `ParsedEmailContext` in testWebhookSettingsAdd `JUNK_MAIL_CHECK_LIST` to worker configurationRefactor common mail functions to use `ParsedEmailContext`Implement `JUNK_MAIL_CHECK_LIST` in junk mail checkUse `ParsedEmailContext` in email processingUse `ParsedEmailContext` in testWebhookSettingsUse `ParsedEmailContext` in Telegram mail functionsAdd `ParsedEmailContext` type definition3 files
Update changelog with new featuresDocument `JUNK_MAIL_CHECK_LIST` configurationDocument `JUNK_MAIL_CHECK_LIST` configuration in Chinese1 files
Add `JUNK_MAIL_CHECK_LIST` to wrangler template🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.