[PR #647] [MERGED] feature: 基于子域名转发到不同的邮箱中去 (#645) #677

Closed
opened 2026-02-26 21:32:22 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/647
Author: @Zyx-A
Created: 4/29/2025
Status: Merged
Merged: 4/30/2025
Merged by: @dreamhunter2333

Base: mainHead: main


📝 Commits (1)

  • 80894a4 feature: 基于子域名转发到不同的邮箱中去 (#645)

📊 Changes

5 files changed (+52 additions, -2 deletions)

View changed files

📝 worker/src/admin_api/worker_config.ts (+2 -1)
📝 worker/src/email/index.ts (+25 -0)
📝 worker/src/types.d.ts (+6 -0)
📝 worker/src/utils.ts (+17 -1)
📝 worker/wrangler.toml.template (+2 -0)

📄 Description

[Feature] 基于子域名转发到不同的邮箱中去 https://github.com/dreamhunter2333/cloudflare_temp_email/issues/645
按我自己的理解,进行了源码修改,应 dreamhunter2333 要求,重新做了兼容性调整,主要新增了 SUBDOMAIN_FORWARD_ADDRESS_LIST 变量,使其同 USER_ROLES 变量语法类似。
SUBDOMAIN_FORWARD_ADDRESS_LIST 变量值格式为:

[{"domains":[""],"forward":"xxx1@xxx.com"},{"domains":["subdomain-1.domain.com","subdomain-2.domain.com"],"forward":"xxx2@xxx.com"}]

其中domains的列表值可为空,为空则代表将全局所有邮件转发到指定邮箱,即如果赋值为

SUBDOMAIN_FORWARD_ADDRESS_LIST = [{"domains":[""],"forward":"xxx1@xxx.com"}]

则与 FORWARD_ADDRESS_LIST 效果等同

FORWARD_ADDRESS_LIST = ["xxx1@xxx.com"]

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dreamhunter2333/cloudflare_temp_email/pull/647 **Author:** [@Zyx-A](https://github.com/Zyx-A) **Created:** 4/29/2025 **Status:** ✅ Merged **Merged:** 4/30/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`80894a4`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/80894a4e6fe03153be8f1395554e1bdc5e688a68) feature: 基于子域名转发到不同的邮箱中去 (#645) ### 📊 Changes **5 files changed** (+52 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `worker/src/admin_api/worker_config.ts` (+2 -1) 📝 `worker/src/email/index.ts` (+25 -0) 📝 `worker/src/types.d.ts` (+6 -0) 📝 `worker/src/utils.ts` (+17 -1) 📝 `worker/wrangler.toml.template` (+2 -0) </details> ### 📄 Description [Feature] 基于子域名转发到不同的邮箱中去 https://github.com/dreamhunter2333/cloudflare_temp_email/issues/645 按我自己的理解,进行了源码修改,应 `dreamhunter2333` 要求,重新做了兼容性调整,主要新增了 `SUBDOMAIN_FORWARD_ADDRESS_LIST` 变量,使其同 USER_ROLES 变量语法类似。 `SUBDOMAIN_FORWARD_ADDRESS_LIST` 变量值格式为: ``` json [{"domains":[""],"forward":"xxx1@xxx.com"},{"domains":["subdomain-1.domain.com","subdomain-2.domain.com"],"forward":"xxx2@xxx.com"}] ``` 其中domains的列表值可为空,为空则代表将全局所有邮件转发到指定邮箱,即如果赋值为 ``` SUBDOMAIN_FORWARD_ADDRESS_LIST = [{"domains":[""],"forward":"xxx1@xxx.com"}] ``` 则与 `FORWARD_ADDRESS_LIST` 效果等同 ``` FORWARD_ADDRESS_LIST = ["xxx1@xxx.com"] ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 21:32:22 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudflare_temp_email#677
No description provided.