[PR #710] [MERGED] feat: 账号设置页面增加 邮件转发规则 和 禁止接收未知地址邮件 配置 #711

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

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/710
Author: @dreamhunter2333
Created: 8/23/2025
Status: Merged
Merged: 8/23/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/email


📝 Commits (1)

  • 9d00b08 feat: 账号设置页面增加 邮件转发规则 和 禁止接收未知地址邮件 配置

📊 Changes

6 files changed (+199 additions, -12 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 frontend/src/views/admin/AccountSettings.vue (+150 -7)
📝 worker/src/admin_api/index.ts (+9 -2)
📝 worker/src/constants.ts (+1 -0)
📝 worker/src/email/index.ts (+32 -3)
📝 worker/src/models/index.ts (+5 -0)

📄 Description

User description

#706


PR Type

Enhancement


Description

  • Added email forwarding configuration to the admin account settings page.

  • Introduced a feature to block emails sent to unknown addresses.

  • Updated backend logic to handle email forwarding and unknown address blocking.

  • Enhanced UI with modal for managing email forwarding rules.


Changes walkthrough 📝

Relevant files
Enhancement
AccountSettings.vue
Enhanced admin settings UI for email rules                             

frontend/src/views/admin/AccountSettings.vue

  • Added UI components for email forwarding configuration.
  • Introduced a modal for managing email forwarding rules.
  • Added a checkbox to block emails sent to unknown addresses.
  • Updated save logic to include new email rule settings.
  • +150/-7 
    index.ts
    Updated admin API for email rule settings                               

    worker/src/admin_api/index.ts

  • Added support for fetching and saving email rule settings.
  • Integrated email forwarding and unknown address blocking into API
    endpoints.
  • +9/-2     
    index.ts
    Enhanced email handling for forwarding and blocking           

    worker/src/email/index.ts

  • Implemented logic to block emails sent to unknown addresses.
  • Enhanced email forwarding logic to include new rule settings.
  • +32/-3   
    index.ts
    Added model for email rule settings                                           

    worker/src/models/index.ts

  • Added a new type EmailRuleSettings to represent email rule
    configurations.
  • +5/-0     
    Configuration changes
    constants.ts
    Added constant for email rule settings                                     

    worker/src/constants.ts

    • Added a new constant for email rule settings key.
    +1/-0     
    Documentation
    CHANGELOG.md
    Updated changelog with new features                                           

    CHANGELOG.md

  • Documented new features for email forwarding and unknown address
    blocking.
  • +2/-0     

    Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.

  • 🔄 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/710 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 8/23/2025 **Status:** ✅ Merged **Merged:** 8/23/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/email` --- ### 📝 Commits (1) - [`9d00b08`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/9d00b086ff11bd562aa6d87753f3577a7dabb2cb) feat: 账号设置页面增加 邮件转发规则 和 禁止接收未知地址邮件 配置 ### 📊 Changes **6 files changed** (+199 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `frontend/src/views/admin/AccountSettings.vue` (+150 -7) 📝 `worker/src/admin_api/index.ts` (+9 -2) 📝 `worker/src/constants.ts` (+1 -0) 📝 `worker/src/email/index.ts` (+32 -3) 📝 `worker/src/models/index.ts` (+5 -0) </details> ### 📄 Description ### **User description** #706 ___ ### **PR Type** Enhancement ___ ### **Description** - Added email forwarding configuration to the admin account settings page. - Introduced a feature to block emails sent to unknown addresses. - Updated backend logic to handle email forwarding and unknown address blocking. - Enhanced UI with modal for managing email forwarding rules. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>AccountSettings.vue</strong><dd><code>Enhanced admin settings UI for email rules</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> frontend/src/views/admin/AccountSettings.vue <li>Added UI components for email forwarding configuration.<br> <li> Introduced a modal for managing email forwarding rules.<br> <li> Added a checkbox to block emails sent to unknown addresses.<br> <li> Updated save logic to include new email rule settings. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/710/files#diff-d5db89bc5b7ac5d009a78d299aa22f0f0414bbbb5006e88b30f35af8510b6b33">+150/-7</a>&nbsp; </td> </tr> <tr> <td> <details> <summary><strong>index.ts</strong><dd><code>Updated admin API for email rule settings</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/admin_api/index.ts <li>Added support for fetching and saving email rule settings.<br> <li> Integrated email forwarding and unknown address blocking into API <br>endpoints. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/710/files#diff-b470c4c47ce4a700cd8aac644d07d8a747d439bb6d69e9392a198b3a931fe2e7">+9/-2</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>index.ts</strong><dd><code>Enhanced email handling for forwarding and blocking</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/email/index.ts <li>Implemented logic to block emails sent to unknown addresses.<br> <li> Enhanced email forwarding logic to include new rule settings. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/710/files#diff-da1768152a73f37b0a0780d578569f84c3d4bb946294e3a81fb0271302e6d816">+32/-3</a>&nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>index.ts</strong><dd><code>Added model for email rule settings</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/models/index.ts <li>Added a new type <code>EmailRuleSettings</code> to represent email rule <br>configurations. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/710/files#diff-430bcc4ffa98738e7419c774a53ba2ce8b5127a36b3741e89bf36b95a56f02bc">+5/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Configuration changes</strong></td><td><table> <tr> <td> <details> <summary><strong>constants.ts</strong><dd><code>Added constant for email rule settings</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/constants.ts - Added a new constant for email rule settings key. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/710/files#diff-cab08ba19c1499ed426fc4918a5613e22eb95c3427c7467ce330f5ee0d69d01e">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Documentation</strong></td><td><table> <tr> <td> <details> <summary><strong>CHANGELOG.md</strong><dd><code>Updated changelog with new features</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> CHANGELOG.md <li>Documented new features for email forwarding and unknown address <br>blocking. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/710/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed">+2/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about PR-Agent usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details> --- <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:36 +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#711
    No description provided.