a6bb4dc1ec
- current_user_id 从 'wechat_user' 改为动态共享变量 - listen_loop 中每条消息更新 current_user_id - 修复 Rust 2024 edition 的 ref/move 问题 - email 读操作降为 Low(无副作用,避免审批死锁) - 审批死锁根因:approval_flow 阻塞 listen_loop, receive_messages 无法被再次调用 后续需重构为异步审批模式(工具返回 pending,listen_loop 驱动确认)
32 lines
453 B
Markdown
32 lines
453 B
Markdown
# email
|
|
|
|
收发邮件(IMAP)。
|
|
|
|
## Risk Level
|
|
Low
|
|
|
|
## Parameters
|
|
```json
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"action": {
|
|
"type": "string",
|
|
"description": "操作类型",
|
|
"enum": ["list_unread", "read", "mark_read"]
|
|
},
|
|
"limit": {
|
|
"type": "integer",
|
|
"description": "列出最近几封邮件,默认5",
|
|
"default": 5
|
|
}
|
|
},
|
|
"required": ["action"]
|
|
}
|
|
```
|
|
|
|
## Execute
|
|
```bash
|
|
scripts/email.sh
|
|
```
|