[PR #563] [MERGED] feat: |Worker| add REMOVE_ALL_ATTACHMENT and REMOVE_EXCEED_SIZE_ATTAC… #627

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

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/563
Author: @dreamhunter2333
Created: 1/18/2025
Status: Merged
Merged: 1/18/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (1)

  • 9f242ba feat: |Worker| add REMOVE_ALL_ATTACHMENT and REMOVE_EXCEED_SIZE_ATTACHMENT

📊 Changes

3 files changed (+20 additions, -16 deletions)

View changed files

📝 vitepress-docs/docs/zh/guide/ui/worker.md (+8 -8)
📝 worker/src/email/check_attachment.ts (+5 -1)
📝 worker/src/email/index.ts (+7 -7)

📄 Description

User description

…HMENT


PR Type

enhancement, documentation


Description

  • Added error handling for setting email headers.

  • Replaced console.log with console.error for error logging.

  • Updated documentation for environment variable configuration.


Changes walkthrough 📝

Relevant files
Enhancement
check_attachment.ts
Add error handling for setting email headers                         

worker/src/email/check_attachment.ts

  • Added try-catch block for setting email headers.
+5/-1     
index.ts
Improve error logging in email processing                               

worker/src/email/index.ts

  • Replaced console.log with console.error for error logging.
+7/-7     
Documentation
worker.md
Update environment variable configuration documentation   

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

  • Updated descriptions and examples for environment variables.
+8/-8     

💡 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/563 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 1/18/2025 **Status:** ✅ Merged **Merged:** 1/18/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (1) - [`9f242ba`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/9f242bacd33c1ff8efb3c59a1a54b9b1b70fb7e8) feat: |Worker| add REMOVE_ALL_ATTACHMENT and REMOVE_EXCEED_SIZE_ATTACHMENT ### 📊 Changes **3 files changed** (+20 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `vitepress-docs/docs/zh/guide/ui/worker.md` (+8 -8) 📝 `worker/src/email/check_attachment.ts` (+5 -1) 📝 `worker/src/email/index.ts` (+7 -7) </details> ### 📄 Description ### **User description** …HMENT ___ ### **PR Type** enhancement, documentation ___ ### **Description** - Added error handling for setting email headers. - Replaced `console.log` with `console.error` for error logging. - Updated documentation for environment variable configuration. ___ ### **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>check_attachment.ts</strong><dd><code>Add error handling for setting email headers</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/email/check_attachment.ts - Added try-catch block for setting email headers. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/563/files#diff-b9bd917cb9ec1a8c6fa329cd517b3c4b2c98d5c4b6f477f1d5e928d1972cfdcc">+5/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>index.ts</strong><dd><code>Improve error logging in email processing</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/email/index.ts - Replaced `console.log` with `console.error` for error logging. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/563/files#diff-da1768152a73f37b0a0780d578569f84c3d4bb946294e3a81fb0271302e6d816">+7/-7</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Documentation</strong></td><td><table> <tr> <td> <details> <summary><strong>worker.md</strong><dd><code>Update environment variable configuration documentation</code>&nbsp; &nbsp; </dd></summary> <hr> vitepress-docs/docs/zh/guide/ui/worker.md - Updated descriptions and examples for environment variables. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/563/files#diff-ed132f8c7a4d0a1bd98a708c0577a087c30833499ef59c1f30f1b819a351290d">+8/-8</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:06 +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#627
No description provided.