[GH-ISSUE #163] [Feature] 禁止用户删除邮件(可配置) #53

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

Originally created by @SunsetMkt on GitHub (Apr 26, 2024).
Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/163

请描述您的 Feature

禁止用户删除邮件,可通过环境变量配置。

描述您想要的解决方案

当配置项为true时,非管理员无法删除邮件,提示not allowed。

Originally created by @SunsetMkt on GitHub (Apr 26, 2024). Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/163 ## 请描述您的 Feature 禁止用户删除邮件,可通过环境变量配置。 ## 描述您想要的解决方案 当配置项为true时,非管理员无法删除邮件,提示not allowed。
kerem 2026-02-26 20:35:21 +03:00
Author
Owner

@dreamhunter2333 commented on GitHub (Apr 26, 2024):

好的,我添加个配置项

<!-- gh-comment-id:2079701900 --> @dreamhunter2333 commented on GitHub (Apr 26, 2024): 好的,我添加个配置项
Author
Owner

@dreamhunter2333 commented on GitHub (Apr 27, 2024):

已新增配置, 文档链接

# 允许用户删除邮件, 不配置则不允许
ENABLE_USER_DELETE_EMAIL = true
# 允许自动回复邮件
ENABLE_AUTO_REPLY = false
<!-- gh-comment-id:2080893046 --> @dreamhunter2333 commented on GitHub (Apr 27, 2024): 已新增配置, [文档链接](https://temp-mail-docs.awsl.uk/zh/guide/cli/worker.html#:~:text=%23%20%E5%85%81%E8%AE%B8%E7%94%A8%E6%88%B7%E5%88%A0%E9%99%A4%E9%82%AE%E4%BB%B6%2C%20%E4%B8%8D%E9%85%8D%E7%BD%AE%E5%88%99%E4%B8%8D%E5%85%81%E8%AE%B8%0AENABLE_USER_DELETE_EMAIL%20%3D%20true%0A%23%20%E5%85%81%E8%AE%B8%E8%87%AA%E5%8A%A8%E5%9B%9E%E5%A4%8D%E9%82%AE%E4%BB%B6%0AENABLE_AUTO_REPLY%20%3D%20false) ```toml # 允许用户删除邮件, 不配置则不允许 ENABLE_USER_DELETE_EMAIL = true # 允许自动回复邮件 ENABLE_AUTO_REPLY = false ```
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#53
No description provided.