[PR #639] [MERGED] feature: add /user_api/mails with filter params address and keyword #672

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

📋 Pull Request Information

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

Base: mainHead: feature/dev


📝 Commits (1)

  • 603ddbc feature: add /user_api/mails with filter params address and keyword

📊 Changes

19 files changed (+1125 additions, -888 deletions)

View changed files

📝 CHANGELOG.md (+5 -1)
📝 frontend/package.json (+4 -4)
📝 frontend/pnpm-lock.yaml (+284 -281)
📝 frontend/src/views/User.vue (+6 -0)
frontend/src/views/user/UserMailBox.vue (+90 -0)
📝 pages/package.json (+2 -2)
📝 vitepress-docs/docs/zh/guide/feature/mail-api.md (+50 -2)
📝 vitepress-docs/package.json (+2 -2)
📝 vitepress-docs/pnpm-lock.yaml (+290 -290)
📝 worker/package.json (+7 -7)
📝 worker/pnpm-lock.yaml (+239 -239)
worker/src/admin_api/admin_mail_api.ts (+39 -0)
📝 worker/src/admin_api/admin_user_api.ts (+9 -3)
📝 worker/src/admin_api/index.ts (+5 -48)
📝 worker/src/constants.ts (+1 -1)
📝 worker/src/i18n/index.ts (+13 -0)
📝 worker/src/user_api/bind_address.ts (+31 -8)
📝 worker/src/user_api/index.ts (+5 -0)
worker/src/user_api/user_mail_api.ts (+43 -0)

📄 Description

User description

#612


PR Type

Enhancement, Documentation


Description

  • Add user mail API with filters

  • Implement admin mail API with filters

  • Update documentation for mail APIs

  • Upgrade dependencies and version numbers


Changes walkthrough 📝

Relevant files
Enhancement
7 files
UserMailBox.vue
Add user mail filtering functionality                                       
+90/-0   
User.vue
Integrate UserMailBox component into user view                     
+6/-0     
index.ts
Refactor admin mail API routes                                                     
+5/-48   
user_mail_api.ts
Implement user mail API with filters                                         
+43/-0   
admin_mail_api.ts
Implement admin mail API with filters                                       
+39/-0   
index.ts
Add context-based message retrieval                                           
+13/-0   
index.ts
Add user mail API routes                                                                 
+5/-0     
Error handling
2 files
bind_address.ts
Enhance error handling and address retrieval                         
+31/-8   
admin_user_api.ts
Improve error handling with i18n support                                 
+9/-3     
Configuration changes
1 files
constants.ts
Update version constant                                                                   
+1/-1     
Dependencies
5 files
pnpm-lock.yaml
Update frontend dependencies                                                         
+284/-281
package.json
Update worker dependencies and version                                     
+7/-7     
package.json
Update frontend dependencies and version                                 
+4/-4     
package.json
Update pages dependencies and version                                       
+2/-2     
package.json
Update docs dependencies and version                                         
+2/-2     
Documentation
2 files
mail-api.md
Document mail API usage                                                                   
+50/-2   
CHANGELOG.md
Add changelog for new features                                                     
+5/-1     
Additional files
2 files
pnpm-lock.yaml +290/-290
pnpm-lock.yaml +239/-239

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/639 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 4/23/2025 **Status:** ✅ Merged **Merged:** 4/23/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (1) - [`603ddbc`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/603ddbc694d68d544dc7801f2b67c2833226b795) feature: add /user_api/mails with filter params address and keyword ### 📊 Changes **19 files changed** (+1125 additions, -888 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+5 -1) 📝 `frontend/package.json` (+4 -4) 📝 `frontend/pnpm-lock.yaml` (+284 -281) 📝 `frontend/src/views/User.vue` (+6 -0) ➕ `frontend/src/views/user/UserMailBox.vue` (+90 -0) 📝 `pages/package.json` (+2 -2) 📝 `vitepress-docs/docs/zh/guide/feature/mail-api.md` (+50 -2) 📝 `vitepress-docs/package.json` (+2 -2) 📝 `vitepress-docs/pnpm-lock.yaml` (+290 -290) 📝 `worker/package.json` (+7 -7) 📝 `worker/pnpm-lock.yaml` (+239 -239) ➕ `worker/src/admin_api/admin_mail_api.ts` (+39 -0) 📝 `worker/src/admin_api/admin_user_api.ts` (+9 -3) 📝 `worker/src/admin_api/index.ts` (+5 -48) 📝 `worker/src/constants.ts` (+1 -1) 📝 `worker/src/i18n/index.ts` (+13 -0) 📝 `worker/src/user_api/bind_address.ts` (+31 -8) 📝 `worker/src/user_api/index.ts` (+5 -0) ➕ `worker/src/user_api/user_mail_api.ts` (+43 -0) </details> ### 📄 Description ### **User description** #612 ___ ### **PR Type** Enhancement, Documentation ___ ### **Description** - Add user mail API with filters - Implement admin mail API with filters - Update documentation for mail APIs - Upgrade dependencies and version numbers ___ ### **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>UserMailBox.vue</strong><dd><code>Add user mail filtering functionality</code>&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/639/files#diff-8d9a73f8df26d8b4aed6f8e7c9866408076dfbca119fa8341ad4fe1d0f6e0b1b">+90/-0</a>&nbsp; &nbsp; </td> </tr> <tr> <td><strong>User.vue</strong><dd><code>Integrate UserMailBox component into user view</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/639/files#diff-60526c89a5304583393a2b8af910ca9c55dcf3566da6733d1e693cb00aca3c69">+6/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>index.ts</strong><dd><code>Refactor admin mail API routes</code>&nbsp; &nbsp; &nbsp; &nbsp; &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/639/files#diff-b470c4c47ce4a700cd8aac644d07d8a747d439bb6d69e9392a198b3a931fe2e7">+5/-48</a>&nbsp; &nbsp; </td> </tr> <tr> <td><strong>user_mail_api.ts</strong><dd><code>Implement user mail API with filters</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/639/files#diff-62bd76645c177bc3209db4dae9f73f3180c07bd0eb799b62a9afbeb2d3a73d41">+43/-0</a>&nbsp; &nbsp; </td> </tr> <tr> <td><strong>admin_mail_api.ts</strong><dd><code>Implement admin mail API with filters</code>&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/639/files#diff-a38f1c7b95e309c677d6acb34bd783bda633c5d6626ed609362f035bd233da18">+39/-0</a>&nbsp; &nbsp; </td> </tr> <tr> <td><strong>index.ts</strong><dd><code>Add context-based message retrieval</code>&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/639/files#diff-b57af9f265405661c012637412faf96817ca297e2316168d3b16dcd9c3276bc9">+13/-0</a>&nbsp; &nbsp; </td> </tr> <tr> <td><strong>index.ts</strong><dd><code>Add user mail API routes</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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/639/files#diff-5295b4a62dc27ad938da4f5769e8c944b01cff33c3e76ce16ebf21c6d81144d1">+5/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></details></td></tr><tr><td><strong>Error handling</strong></td><td><details><summary>2 files</summary><table> <tr> <td><strong>bind_address.ts</strong><dd><code>Enhance error handling and address retrieval</code>&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/639/files#diff-ada3e8ad268246f0c99c97065551303c02fded466c73a4f525f6206cb49bdebf">+31/-8</a>&nbsp; &nbsp; </td> </tr> <tr> <td><strong>admin_user_api.ts</strong><dd><code>Improve error handling with i18n support</code>&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/639/files#diff-2843fd3d54aa9aa8054d2530e84a06de3068c31fd5c7d5246db5d2a4234a6196">+9/-3</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></details></td></tr><tr><td><strong>Configuration changes</strong></td><td><details><summary>1 files</summary><table> <tr> <td><strong>constants.ts</strong><dd><code>Update version constant</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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/639/files#diff-cab08ba19c1499ed426fc4918a5613e22eb95c3427c7467ce330f5ee0d69d01e">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></details></td></tr><tr><td><strong>Dependencies</strong></td><td><details><summary>5 files</summary><table> <tr> <td><strong>pnpm-lock.yaml</strong><dd><code>Update frontend dependencies</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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/639/files#diff-41b1ff3a74ba81fa74c8dd225d66d81573be3f2990e1d98b9b09798b147d40a8">+284/-281</a></td> </tr> <tr> <td><strong>package.json</strong><dd><code>Update worker dependencies and version</code>&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/639/files#diff-89dc6f41a53ce13f2da5a00dd34868762e6cd0df46eddc9f5c3c4510b1493870">+7/-7</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>package.json</strong><dd><code>Update frontend dependencies and version</code>&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/639/files#diff-da6498268e99511d9ba0df3c13e439d10556a812881c9d03955b2ef7c6c1c655">+4/-4</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>package.json</strong><dd><code>Update pages dependencies and version</code>&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/639/files#diff-74314f72f6616d400be4cb0d161867d8148f23c22d4c12c7188aedb129c00c59">+2/-2</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>package.json</strong><dd><code>Update docs dependencies and version</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/639/files#diff-3adbfbfaa65ecc60f48c8d009a52c697d4c80d61ee887799df22407fcb73f380">+2/-2</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></details></td></tr><tr><td><strong>Documentation</strong></td><td><details><summary>2 files</summary><table> <tr> <td><strong>mail-api.md</strong><dd><code>Document mail API usage</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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/639/files#diff-6c591ac0d4b0ecd75a10ec850fbbd677d9d365fffa9aeddd1b3d9c63898c66bc">+50/-2</a>&nbsp; &nbsp; </td> </tr> <tr> <td><strong>CHANGELOG.md</strong><dd><code>Add changelog for 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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/639/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed">+5/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></details></td></tr><tr><td><strong>Additional files</strong></td><td><details><summary>2 files</summary><table> <tr> <td><strong>pnpm-lock.yaml</strong></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/639/files#diff-655c1410f6eacceaa9003212a9f840a660ace35e32e60d792be3640ec774af6f">+290/-290</a></td> </tr> <tr> <td><strong>pnpm-lock.yaml</strong></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/639/files#diff-b40cf923090a5fb5f6cc0d6ce716c560645419d762871abb50383fdb423288c6">+239/-239</a></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:20 +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#672
    No description provided.