Commit Graph

236 Commits

Author SHA1 Message Date
Cd1s
05bca5d5a8
改进邮件转发的投递兼容性 (#347)
优先使用原始邮件数据转发,保留原始发件人、主题、正文、MIME 和 DKIM 签名,避免重建邮件导致严格 DMARC 收件方拒收。

当原始转发被拒时,回退为使用本地转发账号重新投递,同时保持原始主题不变。

同时修正本地域名转发逻辑:精确识别本地域名,自转发时报错,转发给其他本地用户时直接投递到本地收件箱,避免旧的字符串包含判断误拦截。

测试:go test -v ./services/rule ./dto/parsemail ./utils/send

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 23:29:39 +08:00
Jinnrry
6455635f74
Feature/v2.9.2 (#344)
* feature/v2.9.0

ui优化

* add test case

add test case

* feature/v2.9.2

bug fix

---------

Co-authored-by: Your Name <you@example.com>
2026-05-31 18:42:58 +08:00
Cd1s
68dc2f0f47
fix(imap): advertise and clean up IDLE capability (#343)
Co-authored-by: cheek <cheek@cheek-omenbyhpgaminglaptop16n0xxx.omen.lan>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-31 18:25:31 +08:00
Jinnrry
cd2c879cfd
Feature/v2.9.1 (#338)
add test case
2026-05-23 00:14:37 +08:00
Jinnrry
db20ed97f4
Update unitTest.yml (#340) 2026-05-23 00:07:49 +08:00
Jinnrry
9908c5353d
Change label addition method on test failure (#339)
Replaced action for adding labels on test failure with a command using GitHub CLI.
2026-05-22 23:58:41 +08:00
QvaaX
b0913ee804
fix: resolve multipart email parsing issue (#336)
* fix: resolve multipart email parsing issue

* resolve multipart email parsing issue

解决邮件正文被附件覆盖的bug

* Update email.go

修改xss过滤
2026-05-22 17:45:06 +08:00
Jinnrry
c347f30c0c
feature/v2.9.0 (#332)
1、ui优化
2、Message Id 格式优化,thanks for @Cd1s
2026-04-18 20:20:19 +08:00
Cd1s
23c2fbbdd5
fix: generate Message-ID once and persist to DB (#328)
Previously, a random suffix was generated every time BuildBytes or
ForwardBuildBytes was called, causing IMAP/POP3 clients to treat the
same message as a new message on every sync and breaking conversation
threading.

Changes:
- Add msg_id column to the email table (synced automatically via Sync2)
- Generate a crypto/rand-based RFC-compliant Message-ID once at email
  creation time (send.go for outgoing, read_content.go for incoming)
- Preserve the original Message-ID from externally received emails
- Load the persisted MsgID when rebuilding Email from DB records
- Use the stored MsgID in BuildBytes, ForwardBuildBytes and the IMAP
  ENVELOPE response; fall back to the old numeric format for legacy rows

Fixes the MSGID_SHORT SpamAssassin penalty and Gmail rejection while
keeping Message-IDs stable across syncs.

Co-authored-by: root <root@Claw-ai.tail1478c.ts.net>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 11:43:59 +08:00
Jinnrry
826ac26636
Feature/v2.8.10 (#323)
v2.8.10

1、bug fix #317 #320

2、支持token方式验签,使用参考 PMail_Github/server/main_test.go:135

3、587端口 starttls 问题修复

4、imap 协议功能补全 Tnanks for @HanaKDev
2026-02-01 16:40:24 +08:00
HanaHime
9753b2e09f
[Improve] SMTP & IMAP (#321)
* [Temporarily Fix] SSL Can NOT Renew

* SMTP and IMAP Improve
SMTP With STARTTLS 行为变更 && IMAP 搜索功能尝试实现

* 修复一些客户端玄学问题
2026-01-17 21:38:08 +08:00
Jinnrry
bb1da921c8
Feature/v2.8.9 (#315)
1、翻译优化 #291
2、IMAP协议翻页显示问题修复
3、邮件删除bug修复 #312
2025-11-23 17:56:07 +08:00
Your Name
14f0fbfa8a 移除tg插件 2025-11-04 16:32:34 +08:00
HanaHime
17acb40929
[Temporarily Fix] SSL Can NOT Renew (#310) 2025-11-04 16:09:02 +08:00
Your Name
e7bb01ae6d 移除tg插件,增加第三方tg插件地址 2025-10-12 08:57:36 +08:00
Jinnrry
778e279b4f
feature/v2.8.6 (#304)
imap协议完善
smtp信息泄露修复
2025-08-30 20:25:11 +08:00
jzh
788cd43c43
Fix xss feature (#290)
* fix: 修复解析邮件相关的xss漏洞

* fix: 修复email解析中的xss漏洞,添加一些生成的测试用例

* fix: 修复email解析中的xss漏洞,添加一些生成的测试用例

* fix: 修复email解析中的xss漏洞,添加一些生成的测试用例
2025-07-01 15:40:41 +08:00
nil
0fce027591
fix: 修复删除发件箱后还能看到的bug;修复前端页面打包失败的依赖问题 (#286) 2025-06-13 10:30:27 +08:00
Jinnrry
4504bdb490
Update README.md 2025-05-10 09:36:44 +08:00
Jinnrry
fcc863e8b8
feature/v2.8.4 (#277)
1、发件列表不展示bug修复
2、smtps支持587端口
3、发件代码优化
2025-05-10 09:31:23 +08:00
Jinnrry
e194d6ecfd
feature/v2.8.3 (#269)
1.优化垃圾邮件处理
2.升级所有依赖,go版本升级到1.24
2025-04-20 09:59:56 +08:00
Jinnrry
90d00db9e6
Update release.yml 2025-04-12 11:01:25 +08:00
Jinnrry
898579bdc8
feature/v2.8.2 (#267) 2025-04-12 10:54:37 +08:00
ZShab Niba
eebe4dcaaa
在md文档中使用jsonc解决注释报红的问题 (#252) 2025-02-11 16:38:51 +08:00
Jinnrry
fa93f29839
Update README.md 2025-01-07 20:23:27 +08:00
Haoclouds
a505b6ff1d
修复中文文档在docker中运行命令的imap端口设置问题 (#240) 2025-01-07 20:21:04 +08:00
Jinnrry
69800a8a0e
feature/v2.8.1 (#239)
修复ssl证书校验失败
部分客户端兼容性修复
修复邮件移动失败问题
支持“广告箱”
2025-01-06 21:01:38 +08:00
Jinnrry
5af46b32f6
Feature/v2.8.0 (#231)
支持Imap协议
升级所有依赖
修复部分bug
2025-01-04 16:23:07 +08:00
Jinnrry
6697d2b229
feature/v2.7.5 (#221)
* feature/v2.7.5 

1、非管理员修改昵称报错修复
2、IOS“邮件”客户端展示错误修复。
2024-11-03 15:28:18 +08:00
Jinnrry
223117283b
feature/2.7.4 (#215)
1、SSL renew过程添加挑战适配器
2、转发邮件保留原始收件人地址
3、支持密送功能
4、升级所有依赖包
2024-10-05 10:03:46 +08:00
Jinnrry
9e1a14f6ea
Update bug_report.yml 2024-09-29 10:03:32 +08:00
Jinnrry
2d9d21f0c5
Add files via upload 2024-09-28 14:21:35 +08:00
Jinnrry
b86c2582b5
feature/v2.7.3 (#211)
pop协议数据中增加messageId字段

Co-authored-by: jinnrry <i@jinnrry.com>
2024-09-28 11:28:53 +08:00
Jinnrry
473206f1fc
用户状态同步修复 (#209)
Co-authored-by: jinnrry <jinnrry@users.noreply.github.com>
2024-09-26 19:18:28 +08:00
Jinnrry
b1926807f2
前端状态数据修复 (#207)
前端状态数据修复
样式修复

Co-authored-by: jinnrry <i@jinnrry.com>
2024-09-24 20:22:15 +08:00
HuangZhe
f137d59c72
fix[fe]: 移除 element 样式文件 (#205)
1. 有了 auto-import 之后,貌似不需要再重复引入 css 文件了.

Co-authored-by: zhe28 <huangze28@foxmail.com>
2024-09-23 10:25:14 +08:00
HuangZhe
ad0167f6fd
代码分离,功能优化 (#204)
* feat: 代码分离,功能优化

1. 代码迁移到 ts.
2. 分离 axios 部分代码.
3. 增加 pinia 支持,全局状态代码迁移到相对应的 store.
4. 代码格式优化, 用 === 代替 ==.
5. 代码声明更改,用 const 代替 var 声明.
6. Header 使用 Router 导航.
7. v-for 增加 key.

* fix[fe]: 移除过时的 prop 引用

* fix[fe]: 移除过时的 prop 引用

* fix[fe]: 修复 logo 上面有横线的问题

* fix[fe]: 修复 logo 上面有横线的问题

---------

Co-authored-by: zhe28 <huangze28@foxmail.com>
2024-09-23 10:24:49 +08:00
Jinnrry
dbb671df67
feature/2.6.5 (#202)
1、添加web后台DNS设置引导
2024-09-15 20:54:25 +08:00
HuangZhe
6b123ffab3
fix: 修复 db_dsn 为空的错误 (#200)
1. 在切换数据库类型时, sqlite 的存储位置会被清空. 现于 placeholder 保持一致.
2024-09-10 11:39:31 +08:00
ooopus
1c4240d36f
Update https_server.go (#194) 2024-08-30 07:36:44 +08:00
Jinnrry
2bf2635a40
v2.6.3 (#187)
1、支持发件昵称修改
2、垃圾邮箱识别增加英文数据集
2024-08-11 15:24:54 +08:00
Jinnrry
95d4db9498
Update release.yml (#178) 2024-07-27 22:05:35 +08:00
Jinnrry
e6a56b199d
v2.6.2 (#177)
1、修复邮件插入失败
2、插件支持设置页面
3、修复pop3邮箱拉取权限判断
4、修复非管理员账户的附件权限判断

Co-authored-by: jinnrry <i@jinnrry.com>
2024-07-27 20:47:42 +08:00
Jinnrry
729eb9658a
Update README.md 2024-07-20 12:10:15 +08:00
Jinnrry
58017d7891
Update Dockerfile 2024-07-20 11:53:55 +08:00
Jinnrry
d936380a97
Update DockerfileGithubAction 2024-07-20 11:53:38 +08:00
Jinnrry
c57de3883f
Update DockerfileGithubAction 2024-07-20 11:49:01 +08:00
Jinnrry
c63119cf2b
Update Dockerfile 2024-07-20 11:48:43 +08:00
Jinnrry
5e38850748
Update DockerfileGithubAction 2024-07-20 11:32:46 +08:00
Jinnrry
37fbbe50ea
Update Dockerfile 2024-07-20 11:32:34 +08:00