Files
iAs/resources/skills/email/SKILL.md
T
wunianxiao a6bb4dc1ec fix: 审批流程 user_id 动态绑定 + email 降为 Low 风险
- 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 驱动确认)
2026-06-01 17:56:52 +08:00

453 B

email

收发邮件(IMAP)。

Risk Level

Low

Parameters

{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "description": "操作类型",
      "enum": ["list_unread", "read", "mark_read"]
    },
    "limit": {
      "type": "integer",
      "description": "列出最近几封邮件,默认5",
      "default": 5
    }
  },
  "required": ["action"]
}

Execute

scripts/email.sh