Skip to content

feat(email): 使用英文名时间生成默认邮箱前缀#290

Merged
QLHazyCoder merged 1 commit into
devfrom
codex/pr280-reimplement
May 27, 2026
Merged

feat(email): 使用英文名时间生成默认邮箱前缀#290
QLHazyCoder merged 1 commit into
devfrom
codex/pr280-reimplement

Conversation

@QLHazyCoder
Copy link
Copy Markdown
Owner

本次改动

  • 在最新 origin/dev 上重新实现 PR feat(email): 使用英文名日期时间生成邮箱前缀 #280 的邮箱前缀功能,避免旧 PR 与 feat: 支持 Cloudflare Temp Email 固定子域 #278 固定子域逻辑冲突。
  • 新增共享邮箱 local-part helper,默认生成 英文名 + 年月日时分秒毫秒 + 4 位随机后缀
  • CloudMail 与 Cloudflare Temp Email 默认邮箱前缀统一复用该 helper,同时保留显式 localPart/name 优先。
  • 保留 Cloudflare Temp Email 固定子域逻辑:固定子域时关闭随机子域,并使用 effectiveDomain 发起创建请求。

风险与影响

  • 只影响 CloudMail / Cloudflare Temp Email 在未显式指定邮箱前缀时的默认生成格式。
  • 额外随机后缀用于降低同毫秒碰撞和纯时间戳指纹风险。
  • 未改动 SQL,未改动前端界面。

测试情况

  • node --test tests/background-generated-email-module.test.js tests/cloudmail-provider.test.js
  • npm test

@QLHazyCoder QLHazyCoder merged commit 1960b6e into dev May 27, 2026
@QLHazyCoder QLHazyCoder deleted the codex/pr280-reimplement branch May 27, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant