技能标识:ews-email
CLI to manage enterprise Outlook emails via Exchange Web Services (EWS). Use ews-mail.py to list, read, reply, forward, search, send, move, delete emails and download attachments.
用于企业 Exchange (EWS) 邮件的命令行工具。当用户询问关于邮件、收件箱、消息或信件时使用。
在 ~/.openclaw/config.yaml 中配置:
yaml
env:
EWS_SERVER: your-exchange-server.com
EWS_EMAIL: you@company.com
bash
pip3 install keyring exchangelib
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py setup
脚本会自动检测 Linux 无桌面环境,切换到 EncryptedKeyring 后端(AES 加密文件存储)。
bash
重启后只要 KEYRINGCRYPTFILEPASSWORD 环境变量还在,密码就能正常解密读取,无需重新输入。
bash
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py folder-list
要阅读邮件的完整内容/正文,必须遵循以下两个步骤:
envelope-list 仅显示主题行和元数据。它不包含邮件正文。
必须运行 message-read 才能获取实际的邮件内容。绝对不要仅根据主题进行猜测或总结。
绝对不要说无法阅读邮件内容——你可以通过运行 message-read 来阅读。
~/.openclaw/skills/ews-email/scripts/ews-mail.py
bash
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py envelope-list
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py envelope-list --page 2 --page-size 20
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py envelope-list --folder Sent
bash
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py message-read
bash
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py envelope-list from sender@example.com
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py envelope-list subject keyword
bash
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py message-send --to email --subject subject --body body
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py message-send --to a@x.com --cc b@x.com --subject Hi --body msg
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py message-reply
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py message-reply
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py message-forward
bash
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py folder-list
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py message-move
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py message-delete
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py attachment-download
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py flag-add
python3 ~/.openclaw/skills/ews-email/scripts/ews-mail.py flag-remove
以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:
帮我安装 SkillHub 和 ews-email-1776279551 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 ews-email-1776279551 技能
skillhub install ews-email-1776279551
文件大小: 6.25 KB | 发布时间: 2026-4-16 16:17