[PR #539] [MERGED] feat: |UI| add JUNK_MAIL_FORCE_PASS_LIST #610

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

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/539
Author: @dreamhunter2333
Created: 12/30/2024
Status: Merged
Merged: 12/30/2024
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (1)

  • 8d23387 feat: |UI| add JUNK_MAIL_FORCE_PASS_LIST

📊 Changes

7 files changed (+37 additions, -18 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 vitepress-docs/docs/en/cli.md (+2 -0)
📝 vitepress-docs/docs/zh/guide/cli/worker.md (+3 -1)
📝 worker/src/admin_api/worker_config.ts (+1 -0)
📝 worker/src/email/check_junk.ts (+27 -17)
📝 worker/src/types.d.ts (+1 -0)
📝 worker/wrangler.toml.template (+2 -0)

📄 Description

User description

#531


PR Type

enhancement, documentation


Description

  • Added JUNK_MAIL_FORCE_PASS_LIST to the admin API configuration to allow specifying mandatory checks for junk mail.
  • Implemented logic in check_junk.ts to validate emails against the JUNK_MAIL_FORCE_PASS_LIST.
  • Updated Bindings type definition to include JUNK_MAIL_FORCE_PASS_LIST.
  • Documented the new configuration option in both English and Chinese CLI guides.
  • Added an example configuration for JUNK_MAIL_FORCE_PASS_LIST in the wrangler template.

Changes walkthrough 📝

Relevant files
Enhancement
worker_config.ts
Add `JUNK_MAIL_FORCE_PASS_LIST` to admin API configuration

worker/src/admin_api/worker_config.ts

  • Added JUNK_MAIL_FORCE_PASS_LIST to the configuration object.
+1/-0     
check_junk.ts
Implement `JUNK_MAIL_FORCE_PASS_LIST` logic in junk mail check

worker/src/email/check_junk.ts

  • Imported getStringArray utility function.
  • Added logic to check JUNK_MAIL_FORCE_PASS_LIST for junk mail
    validation.
  • Updated SPF, DKIM, and DMARC checks to populate passedList.
  • +27/-17 
    types.d.ts
    Update `Bindings` type with `JUNK_MAIL_FORCE_PASS_LIST`   

    worker/src/types.d.ts

    • Added JUNK_MAIL_FORCE_PASS_LIST to Bindings type definition.
    +1/-0     
    Documentation
    CHANGELOG.md
    Document `JUNK_MAIL_FORCE_PASS_LIST` configuration             

    CHANGELOG.md

  • Documented the addition of JUNK_MAIL_FORCE_PASS_LIST configuration.
  • +1/-0     
    cli.md
    Add `JUNK_MAIL_FORCE_PASS_LIST` documentation in English CLI guide

    vitepress-docs/docs/en/cli.md

    • Added documentation for JUNK_MAIL_FORCE_PASS_LIST configuration.
    +2/-0     
    worker.md
    Add `JUNK_MAIL_FORCE_PASS_LIST` documentation in Chinese CLI guide

    vitepress-docs/docs/zh/guide/cli/worker.md

  • Added documentation for JUNK_MAIL_FORCE_PASS_LIST configuration in
    Chinese.
  • +3/-1     
    wrangler.toml.template
    Add `JUNK_MAIL_FORCE_PASS_LIST` example in wrangler template

    worker/wrangler.toml.template

    • Added JUNK_MAIL_FORCE_PASS_LIST configuration example.
    +2/-0     

    💡 PR-Agent usage: Comment /help "your question" on any pull request to receive relevant 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/539 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 12/30/2024 **Status:** ✅ Merged **Merged:** 12/30/2024 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (1) - [`8d23387`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/8d23387c13175275575e45f89fe8d4a06644ac21) feat: |UI| add JUNK_MAIL_FORCE_PASS_LIST ### 📊 Changes **7 files changed** (+37 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `vitepress-docs/docs/en/cli.md` (+2 -0) 📝 `vitepress-docs/docs/zh/guide/cli/worker.md` (+3 -1) 📝 `worker/src/admin_api/worker_config.ts` (+1 -0) 📝 `worker/src/email/check_junk.ts` (+27 -17) 📝 `worker/src/types.d.ts` (+1 -0) 📝 `worker/wrangler.toml.template` (+2 -0) </details> ### 📄 Description ### **User description** #531 ___ ### **PR Type** enhancement, documentation ___ ### **Description** - Added `JUNK_MAIL_FORCE_PASS_LIST` to the admin API configuration to allow specifying mandatory checks for junk mail. - Implemented logic in `check_junk.ts` to validate emails against the `JUNK_MAIL_FORCE_PASS_LIST`. - Updated `Bindings` type definition to include `JUNK_MAIL_FORCE_PASS_LIST`. - Documented the new configuration option in both English and Chinese CLI guides. - Added an example configuration for `JUNK_MAIL_FORCE_PASS_LIST` in the wrangler template. ___ ### **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>worker_config.ts</strong><dd><code>Add `JUNK_MAIL_FORCE_PASS_LIST` to admin API configuration</code></dd></summary> <hr> worker/src/admin_api/worker_config.ts - Added `JUNK_MAIL_FORCE_PASS_LIST` to the configuration object. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/539/files#diff-49df0a54d190cb8ea3788432fae88000683da8e61a5c4d0d184c8b7f0015a0ae">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>check_junk.ts</strong><dd><code>Implement `JUNK_MAIL_FORCE_PASS_LIST` logic in junk mail check</code></dd></summary> <hr> worker/src/email/check_junk.ts <li>Imported <code>getStringArray</code> utility function.<br> <li> Added logic to check <code>JUNK_MAIL_FORCE_PASS_LIST</code> for junk mail <br>validation.<br> <li> Updated SPF, DKIM, and DMARC checks to populate <code>passedList</code>. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/539/files#diff-565fa6622914712e83a6155e454ec724434edd8778070fc25efcd1ba613030a5">+27/-17</a>&nbsp; </td> </tr> <tr> <td> <details> <summary><strong>types.d.ts</strong><dd><code>Update `Bindings` type with `JUNK_MAIL_FORCE_PASS_LIST`</code>&nbsp; &nbsp; </dd></summary> <hr> worker/src/types.d.ts - Added `JUNK_MAIL_FORCE_PASS_LIST` to `Bindings` type definition. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/539/files#diff-583fb024d5c9d1efac71bbea788d8379e5e8fc2f0bb1696a9863c6f6cac54bee">+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>Document `JUNK_MAIL_FORCE_PASS_LIST` configuration</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> CHANGELOG.md <li>Documented the addition of <code>JUNK_MAIL_FORCE_PASS_LIST</code> configuration. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/539/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>cli.md</strong><dd><code>Add `JUNK_MAIL_FORCE_PASS_LIST` documentation in English CLI guide</code></dd></summary> <hr> vitepress-docs/docs/en/cli.md - Added documentation for `JUNK_MAIL_FORCE_PASS_LIST` configuration. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/539/files#diff-3f8f72a691fa19c8581621e91cf67ad28855af7a57e58513f6563cf4c8886e5f">+2/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>worker.md</strong><dd><code>Add `JUNK_MAIL_FORCE_PASS_LIST` documentation in Chinese CLI guide</code></dd></summary> <hr> vitepress-docs/docs/zh/guide/cli/worker.md <li>Added documentation for <code>JUNK_MAIL_FORCE_PASS_LIST</code> configuration in <br>Chinese. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/539/files#diff-f760a2ec5dad4b6bda0bd4a9325274567778add8cb984e73650dbaaf680c9178">+3/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>wrangler.toml.template</strong><dd><code>Add `JUNK_MAIL_FORCE_PASS_LIST` example in wrangler template</code></dd></summary> <hr> worker/wrangler.toml.template - Added `JUNK_MAIL_FORCE_PASS_LIST` configuration example. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/539/files#diff-743273da72481b71fbeb1dddfd294be9249554eef65691dfc9bcfa9f0fd971fb">+2/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: Comment `/help "your question"` on any pull request to receive relevant information --- <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:02 +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#610
    No description provided.