[PR #717] [MERGED] feat: add var DISABLE_CUSTOM_ADDRESS_NAME and CREATE_ADDRESS_DEFAULT_… #716

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

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/717
Author: @dreamhunter2333
Created: 9/3/2025
Status: Merged
Merged: 9/4/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/email


📝 Commits (2)

  • 711378c feat: add var DISABLE_CUSTOM_ADDRESS_NAME and CREATE_ADDRESS_DEFAULT_DOMAIN_FIRST
  • 8e5293f fix: enhance input validation with trim() for address creation

📊 Changes

14 files changed (+99 additions, -39 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 README.md (+2 -2)
📝 frontend/src/api/index.js (+1 -0)
📝 frontend/src/store/index.js (+1 -0)
📝 frontend/src/views/common/Login.vue (+10 -5)
📝 vitepress-docs/docs/zh/guide/feature/new-address-api.md (+2 -2)
📝 vitepress-docs/docs/zh/guide/worker-vars.md (+13 -11)
📝 worker/src/commom_api.ts (+2 -0)
📝 worker/src/common.ts (+36 -6)
📝 worker/src/mails_api/index.ts (+8 -4)
📝 worker/src/telegram_api/common.ts (+15 -8)
📝 worker/src/telegram_api/telegram.ts (+1 -1)
📝 worker/src/types.d.ts (+2 -0)
📝 worker/wrangler.toml.template (+4 -0)

📄 Description

User description

…DOMAIN_FIRST


PR Type

Enhancement, Bug fix, Documentation


Description

  • Introduced DISABLE_CUSTOM_ADDRESS_NAME to disable custom email names.

  • Added CREATE_ADDRESS_DEFAULT_DOMAIN_FIRST for domain prioritization.

  • Enhanced input validation with trim() to handle whitespace issues.

  • Updated documentation and configuration templates for new features.


Changes walkthrough 📝

Relevant files
Enhancement
7 files
Login.vue
Added support for disabling custom email names in UI         
+10/-5   
commom_api.ts
Exposed `DISABLE_CUSTOM_ADDRESS_NAME` in API settings       
+2/-0     
common.ts
Added random name generation and improved input validation
+36/-6   
index.ts
Integrated random name generation in email creation API   
+8/-4     
common.ts
Enhanced Telegram API to handle custom name disabling       
+15/-8   
index.js
Added `disableCustomAddressName` to frontend API settings
+1/-0     
index.js
Added `disableCustomAddressName` to global state                 
+1/-0     
Documentation
5 files
telegram.ts
Updated Telegram command description for new features       
+1/-1     
CHANGELOG.md
Documented new features in changelog                                         
+2/-0     
README.md
Minor formatting updates in README                                             
+2/-2     
new-address-api.md
Updated API documentation for random name generation         
+2/-2     
worker-vars.md
Documented new environment variables for email settings   
+13/-11 
Configuration changes
2 files
types.d.ts
Added new environment variables to type definitions           
+2/-0     
wrangler.toml.template
Added new configuration options to template                           
+4/-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/717 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 9/3/2025 **Status:** ✅ Merged **Merged:** 9/4/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/email` --- ### 📝 Commits (2) - [`711378c`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/711378cb11925ded54b82324aa04728a19f516e4) feat: add var DISABLE_CUSTOM_ADDRESS_NAME and CREATE_ADDRESS_DEFAULT_DOMAIN_FIRST - [`8e5293f`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/8e5293f0102da48410a3d184b709c6e53d97a0bb) fix: enhance input validation with trim() for address creation ### 📊 Changes **14 files changed** (+99 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `README.md` (+2 -2) 📝 `frontend/src/api/index.js` (+1 -0) 📝 `frontend/src/store/index.js` (+1 -0) 📝 `frontend/src/views/common/Login.vue` (+10 -5) 📝 `vitepress-docs/docs/zh/guide/feature/new-address-api.md` (+2 -2) 📝 `vitepress-docs/docs/zh/guide/worker-vars.md` (+13 -11) 📝 `worker/src/commom_api.ts` (+2 -0) 📝 `worker/src/common.ts` (+36 -6) 📝 `worker/src/mails_api/index.ts` (+8 -4) 📝 `worker/src/telegram_api/common.ts` (+15 -8) 📝 `worker/src/telegram_api/telegram.ts` (+1 -1) 📝 `worker/src/types.d.ts` (+2 -0) 📝 `worker/wrangler.toml.template` (+4 -0) </details> ### 📄 Description ### **User description** …DOMAIN_FIRST ___ ### **PR Type** Enhancement, Bug fix, Documentation ___ ### **Description** - Introduced `DISABLE_CUSTOM_ADDRESS_NAME` to disable custom email names. - Added `CREATE_ADDRESS_DEFAULT_DOMAIN_FIRST` for domain prioritization. - Enhanced input validation with `trim()` to handle whitespace issues. - Updated documentation and configuration templates for new features. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><details><summary>7 files</summary><table> <tr> <td><strong>Login.vue</strong><dd><code>Added support for disabling custom email names in UI</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/717/files#diff-0ee87c9358b6449242c09bd98ae1ad3a88fb9948c0fcc64c4db3d43e5ec83b4e">+10/-5</a>&nbsp; &nbsp; </td> </tr> <tr> <td><strong>commom_api.ts</strong><dd><code>Exposed `DISABLE_CUSTOM_ADDRESS_NAME` in API settings</code>&nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/717/files#diff-fe2dec25bee7d722fe8aa25b616c21bd12b8123e26469f5cac11c9164be783c3">+2/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>common.ts</strong><dd><code>Added random name generation and improved input validation</code></dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/717/files#diff-fcc08fd5aa3c190d0d45c7e3dd208e5ee831d360b272fdd5869607cf472c5eb1">+36/-6</a>&nbsp; &nbsp; </td> </tr> <tr> <td><strong>index.ts</strong><dd><code>Integrated random name generation in email creation API</code>&nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/717/files#diff-83710df6a60b2b512e134f32ad9890ab9a255040f6019f0d5603f72f4561cea4">+8/-4</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>common.ts</strong><dd><code>Enhanced Telegram API to handle custom name disabling</code>&nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/717/files#diff-962b7426663cb9f82119a7691d62d1401a72e3c85654a12b7b21e014d1414eab">+15/-8</a>&nbsp; &nbsp; </td> </tr> <tr> <td><strong>index.js</strong><dd><code>Added `disableCustomAddressName` to frontend API settings</code></dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/717/files#diff-80f7e17c8e1f299b7316ce792286ebcaab67ed3afc050e3c5019ed33ab61b34b">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>index.js</strong><dd><code>Added `disableCustomAddressName` to global state</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/717/files#diff-0c36ce15651c51795b411359e8caaf5af7960c82674b4f2015b8dd5f480fde2c">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></details></td></tr><tr><td><strong>Documentation</strong></td><td><details><summary>5 files</summary><table> <tr> <td><strong>telegram.ts</strong><dd><code>Updated Telegram command description for new features</code>&nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/717/files#diff-a62d9c6ad0b04691396db4eecb38680ea80a2690f021e18baa6012ad525a27d3">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>CHANGELOG.md</strong><dd><code>Documented new features in changelog</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/717/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed">+2/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>README.md</strong><dd><code>Minor formatting updates in README</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/717/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5">+2/-2</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>new-address-api.md</strong><dd><code>Updated API documentation for random name generation</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/717/files#diff-97176adb4cf55c33b91418f2ebc5d66f440f304986dda258f03ba6c9f993791f">+2/-2</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>worker-vars.md</strong><dd><code>Documented new environment variables for email settings</code>&nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/717/files#diff-1bd83b534dfb9159de9157e0943a1f5191373ecdb5af08552c8033464596d223">+13/-11</a>&nbsp; </td> </tr> </table></details></td></tr><tr><td><strong>Configuration changes</strong></td><td><details><summary>2 files</summary><table> <tr> <td><strong>types.d.ts</strong><dd><code>Added new environment variables to type definitions</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/717/files#diff-583fb024d5c9d1efac71bbea788d8379e5e8fc2f0bb1696a9863c6f6cac54bee">+2/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>wrangler.toml.template</strong><dd><code>Added new configuration options to template</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/717/files#diff-743273da72481b71fbeb1dddfd294be9249554eef65691dfc9bcfa9f0fd971fb">+4/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></details></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:38 +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#716
    No description provided.