Files
mail/AGENTS.md
titor c9b77feabe feat: 收件箱功能新增按回车查看详情面板
- 添加邮件详情面板显示(主题、发件人、收件人、抄送、账户、时间、正文)
- 优化邮件列表卡片样式,增加选中高亮效果
- 窗口宽度 >= 80 时启用双面板布局,左侧列表右侧详情
- 简化依赖包,从 charm.land 使用统一导入路径
- 删除未使用的 golangci/goreleaser 配置文件
2026-04-10 04:41:22 +08:00

75 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Pop 开发记录
## Changelog
| 日期 | 版本 | 描述 |
|------|------|------|
| 2026-04-09 | v0.1.0 | 初始规划:发送历史、收件箱功能 |
| 2026-04-09 | v0.1.1 | 配置简化支持多账户、自动识别Provider |
| 2026-04-10 | v0.1.2 | 收件箱功能:按回车查看邮件详情 |
## 讨论记录
- [第1次功能规划](./doc/001-feature-planning.md)
- [第2次配置简化讨论](./doc/002-config-simplification.md)
## 功能说明
### 收件箱 (inbox)
```bash
pop inbox # 查看收件箱默认最近7天
pop inbox -d 3 # 查看最近3天的未读邮件
```
**操作:**
- `↑` `↓` - 上下移动选择邮件
- `Enter` - 查看邮件详情(在右侧面板显示完整内容)
- `/` - 搜索邮件
- `q` - 退出
**详情面板显示:**
- 主题
- 发件人
- 收件人
- 抄送(如有)
- 账户
- 时间
- 正文(文本内容优先,无文本则显示 HTML 提示)
## 配置文件格式
```yaml
from:
account: foolsecret@163.com
accounts:
- name: work
email: 邮箱
provider: 163
username: foolsecret@163.com
password: 密钥
encryption: ssl
insecure: false
imap:
host: imap.163.com
port: 993
smtp:
host: smtp.163.com
port: 465
- name: qqemail
email: 邮箱
provider: qq
username: xxx@qq.com
password: QQ邮箱IMAP授权码
encryption: ssl
insecure: fales
imap:
host: imap.qq.com
port: 993
smtp:
host: smtp.qq.com
port: 465
```