Repository navigation
What's Changed
Features
- feat: |邮件转发| 规则新增收件人地址正则过滤,复用现有站内转发流程,支持任一或全部匹配
- feat: |邮箱登录| 保留会话 Token 查看入口并显示到期时间,密码模式隐藏旧凭据内容并禁止旧缓存切换,保留缓存删除功能
- feat: |邮箱会话| 将可续期的 30 天 JWT 签发扩展至创建邮箱及用户、管理员、Telegram 授权入口
- feat: |邮箱会话| 网页仅更新当前使用的续期 JWT,沿用本地字符串缓存,历史 token 过期后需重新登录;列表同时存在两种 Token 类型时,以独立列或标签展示登录方式
- feat: |管理后台| 支持切换单个或批量创建,批量创建最多 100 个随机名称邮箱,并导出自动登录链接 CSV(电子表格安全或无损格式)
- feat: |管理统计| 新增 Dashboard,展示邮件、邮箱、用户和发件总数及 7 天、30 天活跃邮箱和用户数,支持按日期查看全站趋势
- feat: |邮件转发| 转发规则按配置域名复用站内收件流程,独立提取和推送且不再转发,自动回复仅执行一次;规则可选流程结束后删除原邮件,全局转发仅支持外部地址并保持原有方式
- feat: |用户系统| 新增
DISABLE_USER_SYSTEM总开关,统一拦截用户接口、停用用户管理员令牌并隐藏前端用户界面 - feat: |邮箱会话| 密码登录开关生效时签发 30 天 JWT,支持邮箱鉴权及剩余不足 7 天时通过 settings 续期
- feat: |邮箱登录| 新增登录页仅显示密码登录的开关,仅在启用邮箱密码时生效;旧凭据、登录链接、API 访问和旧凭据 JWT 时效保持原有行为
- feat: |邮箱凭证| 自动登录链接折叠项新增二维码,方便手机扫码打开邮箱,并提示持有二维码者可访问该邮箱(issue #1189)
Bug Fixes
-
fix: |邮箱登录| 登录策略加载后刷新邮箱切换列表,避免继续显示旧的登录方式
-
fix: |验证码识别| 本地提取忽略无关邮件内容,减少误识别
-
fix: |CI| 单测 Job 超时上限从 5 分钟调整为 15 分钟,给依赖安装预留时间
-
fix: |站点认证|
PASSWORDS配置解析失败或不是字符串数组时拒绝访问,保留正常配置和空配置行为,避免误关闭站点密码保护 -
fix: |CI| Webhook UI 测试等待保存和测试请求响应,避免读取空记录或旧请求导致偶发失败
-
fix: |自动更新| 支持可选的
UPSTREAM_SYNC_TOKEN同步 workflow 变更,未配置时保留默认 Token,并声明同步所需的内容写权限 -
fix: |收件箱| 分页请求失败时保留当前邮件,并恢复页码和每页条数
-
fix: |收件箱| 极简模式仅在成功取得邮件后提示刷新成功
-
fix: |邮件阅读| 允许加载远程图片时,Shadow DOM 邮件预览仍会净化 HTML
-
fix: |健康检查| Worker 绑定
ASSETS时/health_check仍返回OK,不再返回前端页面,便于可用性监控 -
fix: |创建邮箱| 随机生成名称时先转为小写再过滤字符,避免默认
[^a-z0-9]规则删除每段名称的首字母导致名称残缺或过短 -
fix: |邮件阅读| 为普通和全屏 iframe 邮件预览启用沙箱,禁止执行邮件正文中的脚本
-
fix: |定时清理| 分别捕获各项内置清理和自定义 SQL 清理异常,记录错误并继续执行后续任务
-
fix: |顶部导航| 为手机端页眉添加左右留白
-
fix: |收件箱| 保留批量删除失败的勾选,仅在全部删除后提示成功
-
fix: |邮件处理| metadata 更新和 Telegram 邮件链接改用本次入库 ID,避免重复或缺失 Message-ID 导致更新错记录或链接定位错误
-
fix: |邮件阅读| 重置 Shadow 邮件继承的应用默认样式,使用浏览器普通文档的默认系统颜色并保留发件人配色
-
fix: |Telegram| 管理员删除邮箱前清理当前推送用户的绑定及推送映射,释放名额并避免同名重建后继续推送;KV 清理失败时保留邮箱供重试,数据库删除失败时可能已解绑
-
fix: |CI| 修复 WASM npm 包发布路径,避免本地 tarball 被误识别为 GitHub 仓库
-
fix: |CI| E2E 使用测试镜像自带的工具探测服务,构建时无需访问 Ubuntu 软件源
-
fix: |CI| 修复近期邮件清理测试在跨秒时偶发失败的问题
-
fix: |CI| 等待转发设置保存后的刷新完成,避免浏览器测试偶发提交旧设置
-
fix: |邮件解析| 升级 WASM 解析依赖,仅对结构化邮件头补充原始值,保留原有文本头解码行为,修复
header.FromWebhook 过滤失效及移除附件后发件人丢失的问题 -
fix: |邮件解析| 兼容 postal-mime v4 的首个头字段语义,备用解析支持空或缺失 From,移除附件时重新生成 MIME 类型与编码头,避免入库后正文丢失
-
fix: |Telegram| 使用独立的永久内部绑定 token,兼容历史过期绑定;打开邮箱时签发邮箱凭据,阻止内部 token 用于邮箱 API
-
fix: |Worker| 未知邮件、未绑定地址及空地址清理改为分批处理,避免大量积压数据导致 D1 操作超时
-
fix: |用户系统| 邮箱转移确认按钮绑定已有请求加载状态,修复 loading 变量未定义
Improvements
-
perf: |CI| 复用 E2E 镜像,并行调度浏览器测试,减少页面重载、固定等待和重复的浏览器操作,加快 WASM 构建工具安装
-
docs: |文档| 新增邮箱、用户中心与管理后台的登录入口说明,逐项列出 Worker 变量是否必填及默认行为并说明自定义角色,补充发信通道对比,并按兼容日期更新 Node.js 兼容配置步骤
-
perf: |数据库| Schema 升级至
v0.0.10,为未知地址邮件清理增加覆盖索引、为域名清理增加表达式联合索引;按主、次、补丁版本逐段比较迁移版本,避免两位数版本误判及回退版本标记- 在 Admin 清理设置中使用未知邮件清理或自定义来源域名清理时,可利用新增索引。
- 可通过 Admin 数据库页面升级至 v0.0.10,或执行索引 SQL;仅新增索引,不修改邮件数据,不使用相关清理可暂缓添加。
- 减少相应清理查询的扫描量;本次新功能不需要增加数据字段。
-
docs: |用户系统| 补充邮箱绑定、获取已绑定邮箱凭据及解绑 API 的双重鉴权说明和请求示例
-
perf: |CI| 整理测试目录,独立 Webhook UI 功能组,与 API、其他浏览器测试、SMTP/IMAP 并行执行;仅启动各组所需服务,保留单元测试、WASM 测试与统一检查结果
English
Features
- feat: |Mail Forwarding| Add recipient address regex filters to forwarding rules, reusing internal delivery with any/all matching
- feat: |Mailbox Login| Keep session-token access with expiry details, hiding legacy credential contents and blocking legacy cache switches in password-only mode while retaining cache removal
- feat: |Mailbox Sessions| Extend renewable 30-day JWT issuance to mailbox creation and authorized user, admin, and Telegram access
- feat: |Mailbox Sessions| Update only the active mailbox JWT on renewal, retaining the existing string cache; expired historical tokens require login; show login method columns or tags only when both token types appear in the list
- feat: |Admin| Switch between single and batch creation, create batches of up to 100 random-name mailboxes, and export their auto-login links as spreadsheet-safe or lossless CSV
- feat: |Admin Statistics| Add a dashboard with mail, mailbox, user and sent mail totals, 7- and 30-day mailbox and user activity, and site-wide trends by date
- feat: |Mail Forwarding| Route forwarding rules internally by configured domain with independent receive processing, extraction and notifications, no second forwarding and only one auto-reply; optionally delete the original at the end and keep global forwarding external-only with its existing behavior
- feat: |User System| Add
DISABLE_USER_SYSTEMto block user APIs, disable user admin tokens, and hide user interfaces - feat: |Mailbox Sessions| Issue 30-day JWTs at password login when password-only mode is effective, validate mailbox access, and renew through settings below 7 days
- feat: |Mailbox Login| Add a password-only login-page switch that requires mailbox passwords; preserve existing credentials, login links, API access, and legacy JWT lifetimes
- feat: |Mailbox Credential| Show a QR code of the auto-login link in the credential dialog for opening the mailbox on mobile, with a reminder that anyone with the QR code can access the mailbox (issue #1189)
Bug Fixes
-
fix: |Mailbox Login| Refresh the mailbox picker after login policy loads instead of retaining stale login methods
-
fix: |Code Extraction| Skip unrelated mail content during local extraction to reduce false positives
-
fix: |CI| Increase the unit-test job timeout from 5 to 15 minutes to allow time for dependency installation
-
fix: |Site Authentication| Fail closed for malformed or non-string-array
PASSWORDSconfigurations while preserving valid and empty configuration behavior -
fix: |CI| Wait for save and test responses in Webhook UI tests to avoid flaky assertions against missing or stale requests
-
fix: |Auto Update| Support an optional
UPSTREAM_SYNC_TOKENto sync workflow changes, retain the default token when unset, and declare the contents write permission required for syncing -
fix: |Inbox| Keep the current message and restore the page and page size when pagination fails
-
fix: |Inbox| Show simple inbox refresh success only after a successful fetch
-
fix: |Mail Reader| Sanitize Shadow DOM email previews when remote images are allowed
-
fix: |Health Check| Return
OKfrom/health_checkwhen the Worker has anASSETSbinding instead of the frontend page, so uptime monitors can use it -
fix: |Create Address| Lowercase generated names before filtering characters, so the default
[^a-z0-9]rule no longer drops the first letter of each name part and leaves names mangled or too short -
fix: |Mail Reader| Sandbox regular and fullscreen iframe previews to block scripts in email bodies
-
fix: |Scheduled Cleanup| Catch errors for each built-in and custom SQL cleanup task, log failures, and continue with subsequent tasks
-
fix: |Header| Add horizontal spacing to the phone header
-
fix: |Inbox| Keep failed batch-delete selections and show success only when the batch completes
-
fix: |Mail Processing| Use the newly stored row ID for metadata updates and Telegram links, avoiding wrong-row updates or links when Message-ID is repeated or missing
-
fix: |Mail Reader| Reset inherited application defaults in Shadow mail and use browser-default system colors for a normal document while preserving sender colors
-
fix: |Telegram| Clean up the current push recipient's binding and push mapping before admin mailbox deletion, freeing a slot and preventing stale pushes on recreation; KV cleanup failures preserve the mailbox for retry, while database deletion failures may leave it unbound
-
fix: |CI| Fix WASM npm publishing paths so local tarballs are not interpreted as GitHub repositories
-
fix: |CI| Use the E2E image's built-in tools for service probes so its build does not need Ubuntu package mirrors
-
fix: |CI| Prevent intermittent failures in the recent-mail cleanup test when it crosses a second boundary
-
fix: |CI| Wait for the forwarding settings refresh after saving so browser tests do not intermittently submit stale settings
-
fix: |Mail Parser| Upgrade WASM parser dependencies and use raw values only for structured headers, preserving decoded text headers while fixing
header.Fromwebhook filters and sender loss after attachment removal -
fix: |Mail Parser| Support postal-mime v4's first-header semantics: handle empty/missing From in fallback parsing and regenerate MIME type/encoding headers when removing attachments to preserve stored message bodies
-
fix: |Telegram| Store separate permanent internal binding tokens, preserve historical expired bindings, and issue mailbox credentials on access while rejecting internal tokens at mailbox APIs
-
fix: |Worker| Process unknown-mail, unbound-address, and empty-address cleanup in bounded batches to avoid D1 timeouts on large backlogs
-
fix: |User| Bind the mailbox transfer confirmation button to the existing request loading state, fixing the undefined loading variable
Improvements
-
perf: |CI| Reuse E2E images, schedule browser tests in parallel, reduce page reloads, fixed waits and repeated browser actions, and speed up WASM tool installation
-
docs: |Documentation| Add guidance for mailbox, User Center, and Admin Console login entry points; list each Worker variable's required status and default behavior; explain custom roles; compare sending channels; and update Node.js compatibility steps by compatibility date
-
perf: |Database| Upgrade the schema to
v0.0.10with a covering index for unknown-mail cleanup and an expression-based composite index for domain cleanup; compare major, minor, and patch versions numerically to avoid two-digit version errors and version-marker downgrades- Use unknown-mail cleanup or custom sender-domain cleanup in Admin cleanup settings to benefit from the new indexes.
- Upgrade to v0.0.10 through the Admin database page or apply the index SQL; this only adds indexes, does not alter mail data, and can be deferred if these cleanup paths are unused.
- Reduce scans for the corresponding cleanup queries; the new features in this release require no additional data columns.
-
docs: |User| Document mailbox binding, bound mailbox credential retrieval, and unbinding APIs with dual authentication requirements and request examples
-
perf: |CI| Organize test suites and run a dedicated Webhook UI group alongside API, other browser tests and SMTP/IMAP, with only each group's required services, separate unit/WASM tests and one aggregate check
更新或者部署网页不生效请如图勾选清理缓存
PRs
- fix: bind mailbox transfer button loading state by @dreamhunter2333 in #1168
- fix: batch all built-in cleanup tasks by @dreamhunter2333 in #1169
- fix: separate Telegram bindings from mailbox credentials by @dreamhunter2333 in #1171
- feat: upgrade version to v1.14.0 by @dreamhunter2333 in #1172
- chore: upgrade dependencies across all packages by @dreamhunter2333 in #1173
- fix: preserve raw mail headers in WASM parsers by @dreamhunter2333 in #1174
- fix: publish WASM packages from local tarballs by @dreamhunter2333 in #1175
- chore: adopt WASM mail parsers 0.2.3 by @dreamhunter2333 in #1176
- perf: organize and parallelize test suites by @dreamhunter2333 in #1177
- fix: isolate HTML mail defaults from the application theme by @mvanhorn in #1178
- fix: clean Telegram bindings after admin mailbox deletion by @dreamhunter2333 in #1179
- feat: add a password-only mailbox login-page switch by @dreamhunter2333 in #1181
- feat: issue and renew mailbox password sessions by @dreamhunter2333 in #1182
- docs: document mailbox binding APIs by @dreamhunter2333 in #1184
- feat: renew the active mailbox session by @dreamhunter2333 in #1185
- feat: extend renewable mailbox session issuance by @dreamhunter2333 in #1186
- feat: show mailbox session tokens with expiry by @dreamhunter2333 in #1187
- feat: add a switch to disable the user system by @dreamhunter2333 in #1190
- feat: show a QR code for the auto-login link in the credential dialog by @Mittalnew in #1191
- feat: deliver forwarded mail to internal mailboxes by @dreamhunter2333 in #1193
- fix: use stored mail IDs for metadata and Telegram links by @dreamhunter2333 in #1194
- fix: isolate cleanup failures and add cleanup indexes by @dreamhunter2333 in #1195
- feat: batch-create mailboxes and export auto-login links by @mvanhorn in #1198
- feat: add an efficient admin statistics dashboard by @dreamhunter2333 in #1199
- refactor: separate admin mailbox creation modes by @dreamhunter2333 in #1200
- fix: add horizontal spacing to the mobile header by @dreamhunter2333 in #1202
- fix: sandbox inbox iframe previews by @dreamhunter2333 in #1204
- fix: sanitize Shadow DOM mail with remote images enabled by @dreamhunter2333 in #1205
- fix: answer health checks before serving assets by @shbernal in #1209
- fix: lowercase generated address names before filtering by @shbernal in #1210
- docs: note that password secrets must be JSON arrays by @shbernal in #1211
- perf: speed up end-to-end checks by @dreamhunter2333 in #1213
- docs: clarify login and configuration guidance by @dreamhunter2333 in #1214
- feat: Add recipient regex filters to forwarding rules by @dreamhunter2333 in #1216
- fix: recover from failed inbox pagination by @dreamhunter2333 in #1217
- fix: report partial inbox deletion accurately by @dreamhunter2333 in #1226
- fix: report simple inbox refresh failures accurately by @dreamhunter2333 in #1232
- fix: refresh mailbox picker when login policy loads by @dreamhunter2333 in #1234
- fix: skip unrelated mail during local code extraction by @dreamhunter2333 in #1236
- chore: upgrade project dependencies by @dreamhunter2333 in #1237
- fix: support optional upstream sync token by @dreamhunter2333 in #1238
- fix: reject invalid site password configuration by @dreamhunter2333 in #1239
Full Changelog: v1.13.0...v1.14.0