mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-06-28 02:42:44 +08:00
release v0.7.2 (#408)
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
<!-- markdownlint-disable-file MD004 MD024 MD034 MD036 -->
|
||||
# CHANGE LOG
|
||||
|
||||
## main(v0.7.2)
|
||||
## v0.7.2
|
||||
|
||||
- fix: worker 增加 `NO_LIMIT_SEND_ROLE` 配置, 加载失败的问题
|
||||
- feat: worker 增加 `# ADDRESS_REGEX = "[^a-z.0-9]"` 配置, 用于配置地址的正则表达式
|
||||
- feat: worker 增加 `# ADDRESS_REGEX = "[^a-z.0-9]"` 配置, 用于配置地址的正则表达式,如果不设置,默认为 [^a-z0-9], 需谨慎使用, 有些符号可能导致无法收件
|
||||
- feat: worker 优化 webhook 逻辑, 支持 admin 配置全局 webhook, 添加 `message pusher` 集成示例
|
||||
|
||||
## v0.7.1
|
||||
|
||||
|
||||
@@ -135,6 +135,7 @@ function sidebarGuide(): DefaultTheme.SidebarItem[] {
|
||||
{ text: '配置 Telegram Bot', link: 'feature/telegram' },
|
||||
{ text: '配置 S3 附件', link: 'feature/s3-attachment' },
|
||||
{ text: '配置 worker 使用 wasm 解析邮件', link: 'feature/mail_parser_wasm_worker' },
|
||||
{ text: '配置 webhook', link: 'feature/webhook' },
|
||||
{ text: '新建邮箱地址 API', link: 'feature/new-address-api' },
|
||||
]
|
||||
},
|
||||
|
||||
BIN
vitepress-docs/docs/public/feature/address-webhook.png
Normal file
BIN
vitepress-docs/docs/public/feature/address-webhook.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
BIN
vitepress-docs/docs/public/feature/admin-mail-webhook.png
Normal file
BIN
vitepress-docs/docs/public/feature/admin-mail-webhook.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
BIN
vitepress-docs/docs/public/feature/admin-webhook-settings.png
Normal file
BIN
vitepress-docs/docs/public/feature/admin-webhook-settings.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
@@ -46,7 +46,7 @@ node_compat = true
|
||||
PREFIX = "tmp" # 要处理的邮箱名称前缀,不需要后缀可配置为空字符串
|
||||
# (min, max) adderss的长度,如果不设置,默认为(1, 30)
|
||||
# ANNOUNCEMENT = "Custom Announcement" # 自定义公告
|
||||
# address name 的正则表达式,如果不设置,默认为 [^a-z0-9]
|
||||
# address name 的正则表达式,如果不设置,默认为 [^a-z0-9], 需谨慎使用, 有些符号可能导致无法收件
|
||||
# ADDRESS_REGEX = "[^a-z0-9]"
|
||||
# MIN_ADDRESS_LEN = 1
|
||||
# MAX_ADDRESS_LEN = 30
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
# 配置 Telegram Bot
|
||||
|
||||
## Telegram Bot 配置
|
||||
|
||||
> [!NOTE]
|
||||
> 如果要使用 Telegram Bot, 请先绑定 `KV`
|
||||
>
|
||||
> 如果不需要 Telegram Bot, 可跳过此步骤
|
||||
|
||||
## Telegram Bot 配置
|
||||
|
||||
请先创建一个 Telegram Bot,然后获取 `token`,然后执行下面的命令,将 `token` 添加到 secrets 中
|
||||
|
||||
你也可以在 Cloudflare 的 UI 界面中添加 `secrets`
|
||||
|
||||
27
vitepress-docs/docs/zh/guide/feature/webhook.md
Normal file
27
vitepress-docs/docs/zh/guide/feature/webhook.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# 配置 webhook
|
||||
|
||||
> [!NOTE]
|
||||
> 如果要使用 webhook,请先绑定 `KV`
|
||||
>
|
||||
> 如果你想 webhook 的解析邮件能力更强,参考 [配置 worker 使用 wasm 解析邮件](feature/mail_parser_wasm_worker)
|
||||
|
||||
## 前提条件
|
||||
|
||||
你需要自建一个 `webhook 服务` 或者 使用 `第三方平台`,这个服务需要能够接收 `POST` 请求,并且能够解析 `json` 数据。
|
||||
|
||||
本项目使用了 [songquanpeng/message-pusher](https://github.com/songquanpeng/message-pusher) 示例作为 webhook 服务。
|
||||
|
||||
- 可以使用 [msgpusher.com](https://msgpusher.com) 提供的服务
|
||||
- 也可以自建 `message-pusher` 服务,参考 [songquanpeng/message-pusher](https://github.com/songquanpeng/message-pusher)
|
||||
|
||||
## admin 配置全局 webhook
|
||||
|
||||

|
||||
|
||||
## admin 允许邮箱使用 webhook
|
||||
|
||||

|
||||
|
||||
## 某个邮箱配置 webhook
|
||||
|
||||

|
||||
Reference in New Issue
Block a user