# CHANGE LOG ## main branch - 用户名限制最长30个字符 - 修复 `/external/api/send_mail` 未返回的 bug (#222) - 添加 `IMAP proxy` 服务,支持 `IMAP` 查看邮件 ## v0.4.0 ### DB Changes/Breaking changes 新增 user 相关表,用于存储用户信息 - `db/2024-05-08-patch.sql` ### config changs 启用用户注册邮箱验证需要 `KV` ```toml # kv config for send email verification code # [[kv_namespaces]] # binding = "KV" # id = "xxxx" ``` ### function changs - 增加用户注册功能,可绑定邮箱地址,绑定后可自动获取邮箱JWT凭证 - 增加默认以文本显示邮件,文本和HTML邮箱显示方式切换按钮 - 修复 `BUG` 随机生成的邮箱名字不合法 #211 - `admin` 邮件页面支持邮件内容搜索 #210 - 修复删除地址时邮件未删除的BUG #213 - UI 增加全局标签页位置配置, 侧边距配置 * feat: update docs by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/204 * feat: add Deploy to Cloudflare Workers button by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/205 * feat: add Deploy to Cloudflare Workers docs by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/206 * feat: add UserLogin by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/209 * feat: admin search mailbox && fix generateName multi dot && user jwt exp in 30 days && UI globalTabplacement && useSideMargin by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/214 * feat: UI check openSettings in Login page by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/215 * feat: UI move AdminContact to common by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/217 * feat: docs by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/218 ## v0.3.3 - 修复 Admin 删除邮件报错 - UI: 回复邮件按钮, 引用原始邮件文本 #186 - 添加发送邮件地址黑名单 - 添加 `CF Turnstile` 人机验证配置 - 添加 `/external/api/send_mail` 发送邮件 api, 使用 body 验证 #194 ## v0.3.2 ## What's Changed - UI: 添加回复邮件按钮 - 添加定时清理功能,可在 admin 页面配置(需要在配置文件启用定时任务) - 修复删除账户无反应的问题 * feat: UI: MailBox add reply button by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/187 * feat: add cron auto clean up by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/189 * fix: delete account by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/190 ## v0.3.1 ### DB Changes 新增 `settings` 表,用于存储通用配置信息 - `db/2024-05-01-patch.sql` ### Changes - `ENABLE_USER_CREATE_EMAIL` 是否允许用户创建邮件 - 允许 admin 创建无前缀的邮件 - 添加 `SMTP proxy server`,支持 SMTP 发送邮件 - 修复某些情况浏览器无法加载 `wasm` 时使用 js 解析邮件 - 页脚添加 `COPYRIGHT` - UI 允许用户切换邮件展示模式 `v-html` / `iframe` - 添加 `admin` 账户配置页面,支持配置用户注册名称黑名单 * feat: support admin create address && add ENABLE_USER_CREATE_EMAIL co… by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/175 * feat: add SMTP proxy server by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/177 * fix: cf ui var is string by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/178 * fix: UI mailbox 100vh to 80vh by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/179 * fix: smtp_proxy_server hostname && add docker image for linux/arm64 by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/180 * fix: some browser do not support wasm by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/182 * feat: add COPYRIGHT by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/183 * feat: UI: add user page: useIframeShowMail && mailboxSplitSize by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/184 * feat: add address_block_list for new address by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/185 ## v0.3.0 ### Breaking Changes `address` 表的前缀将从代码中迁移到 db 中,请将下面 sql 中的 `tmp` 替换为你的前缀,然后执行。 如果你的数据很重要,请先备份数据库。 **注意替换前缀** ```sql update address set name = 'tmp' || name; ``` ### Changes - `address` 表的前缀将从代码中迁移到 db 中 - `admin` 账户页面添加收发邮件数量 - `admin` 发件页面默认显示全部 - `admin` 发件权限页面支持搜索地址 - `admin` 邮件页面使用左右分栏 UI * feat: remove PREFIX logic in db by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/171 * feat: admin page add account mail count && sendbox default all && sen… by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/172 * feat: all mail use MailBox Component by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/173 **Full Changelog**: https://github.com/dreamhunter2333/cloudflare_temp_email/compare/0.2.10...v0.3.0 ## v0.2.10 - `ENABLE_USER_DELETE_EMAIL` 是否允许用户删除账户和邮件 - `ENABLE_AUTO_REPLY` 是否启用自动回复 - fetchAddressError 提示改进 - 自动刷新显示倒计时 * feat: docs update by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/165 * feat: add ENABLE_USER_DELETE_EMAIL && ENABLE_AUTO_REPLY && modify fetchAddressError i18n && UI: show autoRefreshInterval by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/169 ## v0.2.9 - 添加富文本编辑器 - admin 联系方式,不配置则不显示,可配置任意字符串 `ADMIN_CONTACT = "xx@xx.xxx"` - 默认发送邮件余额,如果不设置,将为 0 `DEFAULT_SEND_BALANCE = 1` ## v0.2.8 - 允许用户删除邮件 - admin 修改发件权限时邮件通知用户 - 发件权限默认 1 条 - 添加 RATE_LIMITER 限流 发送邮件 和 新建地址 - 一些 bug 修复 --- - feat: allow user delete mail && notify when send access changed by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/132 - feat: requset_send_mail_access default 1 balance by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/143 - fix: RATE_LIMITER not call jwt by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/146 - fix: delete_address not delete address_sender by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/153 - fix: send_balance not update when click sendmail by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/155 ## v0.2.7 - Added user interface installation documentation - Support email DKIM - Rate limiting configuration for `/api/new_address` ## v0.2.6 - Added admin query outbox page - Add admin data cleaning page ## 2024-04-12 v0.2.5 - support send email DB changes: - `db/2024-04-12-patch.sql` ## 2024-04-10 v0.2.0 ### Breaking Changes - remove `ENABLE_ATTACHMENT` config - use rust wasm to parse email in frontend - deprecated api moved to `/api/v1` ### Rust Mail Parser 由于 nodejs 解析 email 的库有些问题,此版本切换到使用 rust wasm 调用 rust 的mail 解析库 - 速度更快,附件支持好,可以显示邮件的附件图片 - 解析支持更多 rfc 规范 Due to some problems with nodejs' email parsing library, this version switches to using rust wasm to call rust's mail parsing library. - Faster speed, good attachment support, can display attachment images of emails - Parsing supports more rfc specifications ### DB changs 将 `mails` 表废弃,新的 `mail` 的 `raw` 文本将直接存入 `raw_mails` 表. The `mails` table will be discarded, and the `raw` text of the new `mail` will be directly stored in the `raw_mails` table ## Upgrade Step ```bash git checkout v0.2.0 cd worker wrangler d1 execute dev --file=../db/2024-04-09-patch.sql pnpm run deploy cd ../frontend pnpm run deploy ``` 注意:对于历史邮件,请使用部署新网页查看旧数据。 Note: For historical messages, use the Deploy New web page to view old data. ```bash git checkout feature/backup cd frontend # 创建一个新的 pages, 用于访问旧数据 pnpm run deploy --project-name temp-email-v1 ``` ## 2024-04-09 v0.0.0 release v0.0.0 ## 2024-04-03 DB changes - `db/2024-04-03-patch.sql` Changes: - add delete account - add admin panel search ## 2024-01-13 DB changes - `db/2024-01-13-patch.sql`