[GH-ISSUE #125] 一键删除数据库中所有已接收邮件 #44

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

Originally created by @xiewei3536 on GitHub (Apr 14, 2024).
Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/125

希望可以在管理员面板,一键删除数据库中所有已接收邮件(避免超过D1免费版容量限制),但是已建立的邮箱要继续保存。

Originally created by @xiewei3536 on GitHub (Apr 14, 2024). Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/125 希望可以在管理员面板,一键删除数据库中所有已接收邮件(避免超过D1免费版容量限制),但是已建立的邮箱要继续保存。
kerem 2026-02-26 20:35:17 +03:00
Author
Owner

@xiewei3536 commented on GitHub (Apr 14, 2024):

或者有没有可能让每封邮件只会保存24小时,到期自动删除?
感谢大佬

<!-- gh-comment-id:2054012152 --> @xiewei3536 commented on GitHub (Apr 14, 2024): 或者有没有可能让每封邮件只会保存24小时,到期自动删除? 感谢大佬
Author
Owner

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

OK 可以加个定时清除和管理员清理邮件

<!-- gh-comment-id:2054017219 --> @dreamhunter2333 commented on GitHub (Apr 14, 2024): OK 可以加个定时清除和管理员清理邮件
Author
Owner

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

最新版已添加 https://github.com/dreamhunter2333/cloudflare_temp_email/releases/tag/v0.2.6
image

<!-- gh-comment-id:2054084572 --> @dreamhunter2333 commented on GitHub (Apr 14, 2024): 最新版已添加 https://github.com/dreamhunter2333/cloudflare_temp_email/releases/tag/v0.2.6 <img width="1211" alt="image" src="https://github.com/dreamhunter2333/cloudflare_temp_email/assets/32295532/4a266217-a2e2-4440-99e4-4dbe834ff688">
Author
Owner

@xiewei3536 commented on GitHub (Apr 15, 2024):

最新版已添加 https://github.com/dreamhunter2333/cloudflare_temp_email/releases/tag/v0.2.6 image

 大佬,我按了清理30天前无收件人的邮件,但还是可以查询的到,请问是哪里有问题呢?感谢!

<!-- gh-comment-id:2054291204 --> @xiewei3536 commented on GitHub (Apr 15, 2024): > 最新版已添加 https://github.com/dreamhunter2333/cloudflare_temp_email/releases/tag/v0.2.6 <img alt="image" width="1211" src="https://private-user-images.githubusercontent.com/32295532/322280977-4a266217-a2e2-4440-99e4-4dbe834ff688.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTMxNDU1ODMsIm5iZiI6MTcxMzE0NTI4MywicGF0aCI6Ii8zMjI5NTUzMi8zMjIyODA5NzctNGEyNjYyMTctYTJlMi00NDQwLTk5ZTQtNGRiZTgzNGZmNjg4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDE1VDAxNDEyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAwN2NmYzUxNzU2MWMwMmNjNTI4YzZiY2Q0OTMzODI3ODQxNzlhMWFjMWQ1YjRhZmQzNzE1MzI2YTljMDczMjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.7k7lmzSJf0Ys_0tSPJjbGWFmWO5wU9PFMz-5mWGPHNc">  大佬,我按了清理30天前无收件人的邮件,但还是可以查询的到,请问是哪里有问题呢?感谢!
Author
Owner

@xiewei3536 commented on GitHub (Apr 15, 2024):

清理发件箱也不行
其他清理功能还没有测试

<!-- gh-comment-id:2054305025 --> @xiewei3536 commented on GitHub (Apr 15, 2024): 清理发件箱也不行 其他清理功能还没有测试
Author
Owner

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

最新版已添加 https://github.com/dreamhunter2333/cloudflare_temp_email/releases/tag/v0.2.6 image

 大佬,我按了清理30天前无收件人的邮件,但还是可以查询的到,请问是哪里有问题呢?感谢!

我测试一下,新的数据在 raw_mails,之前的数据在 mails,如不需要可以请看 mails 表。

<!-- gh-comment-id:2055297281 --> @dreamhunter2333 commented on GitHub (Apr 15, 2024): > > 最新版已添加 https://github.com/dreamhunter2333/cloudflare_temp_email/releases/tag/v0.2.6 <img alt="image" width="1211" src="https://private-user-images.githubusercontent.com/32295532/322280977-4a266217-a2e2-4440-99e4-4dbe834ff688.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTMxNDU1ODMsIm5iZiI6MTcxMzE0NTI4MywicGF0aCI6Ii8zMjI5NTUzMi8zMjIyODA5NzctNGEyNjYyMTctYTJlMi00NDQwLTk5ZTQtNGRiZTgzNGZmNjg4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDE1VDAxNDEyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAwN2NmYzUxNzU2MWMwMmNjNTI4YzZiY2Q0OTMzODI3ODQxNzlhMWFjMWQ1YjRhZmQzNzE1MzI2YTljMDczMjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.7k7lmzSJf0Ys_0tSPJjbGWFmWO5wU9PFMz-5mWGPHNc"> > >  大佬,我按了清理30天前无收件人的邮件,但还是可以查询的到,请问是哪里有问题呢?感谢! 我测试一下,新的数据在 raw_mails,之前的数据在 mails,如不需要可以请看 mails 表。
Author
Owner

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

清理发件箱也不行 其他清理功能还没有测试

测试了下,都成功了,清理天数在 0 - 30 天之间
image

<!-- gh-comment-id:2055371219 --> @dreamhunter2333 commented on GitHub (Apr 15, 2024): > 清理发件箱也不行 其他清理功能还没有测试 测试了下,都成功了,清理天数在 0 - 30 天之间 <img width="756" alt="image" src="https://github.com/dreamhunter2333/cloudflare_temp_email/assets/32295532/7889c2e1-8a79-4f87-b628-198abccbbfc2">
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#44
No description provided.