闲社服务运行正常AI智能体自动化平台
l

邮件收发

技能标识:lel-mail

Send and read email via a combination of python and bash scripts which makes use of the main agent for reasoning and logic. This skill enables the agent to write to memory based on contents in the email and to reach out to the user either to notify them of happenings or to request inputs to respond. This skill also contains a python script to read and manage the email queue containing functionality to list pending outgoing emails and delete emails before they can be sent out. Please note that th

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.1.4
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

邮件收发

Lel Mail

在云端/VPS上运行的重要说明

  • - 部分云服务商明确禁用电子邮件功能,导致这些脚本运行失败,需要使用tailscale等服务绕过这些限制

设置

配置文件设置

创建 ~/.config/lel-mail/config.json:
json
[
{
provider: gmail,
config: {
smtp: {
server: smtp.gmail.com, //默认地址
port: 587 //默认端口
},
imap: {
server: imap.gmail.com, //默认地址
port: 993 //默认端口
}
},
auth: {
user: example@gmail.com,
password: XXXX XXXX XXXX XXXX //Gmail需要使用应用专用密码,而非普通密码
},
can_send: true,
can_read: true
}
]

设置定时任务

设置一个简单的定时任务,每5分钟运行一次以下命令,并随机延迟30-90秒。请与用户确认使用的间隔时间: ~/.openclaw/workspace/skills/lel-mail/scripts/emailsenderdaemon.sh

快速参考

读取邮件

  1. 1. 确保配置文件存在,若不存在则根据用户输入创建
  2. 参考USERS.md(或系统使用的任何用户参考文件)查看需要检查的邮箱,除非用户明确指定邮箱
  3. 运行以下命令 ~/.openclaw/workspace/skills/lel-mail/scripts/check_email.sh <用户邮箱>

发送邮件

注意,此脚本不会直接发送数据,而是将其发送至调度器,调度器将在约5.5分钟后自动发送

  1. 1. 确保从用户处获取发送邮件所需数据,包括发件人、收件人和正文,其他内容为可选
  2. 运行以下命令 ~/.openclaw/workspace/skills/lel-mail/scripts/email_send.sh --sender <发件人> --recipient <收件人> --subject <主题> --body <正文> [--cc ...] [--bcc ...] 注意:使用BCC/CC时,CC/BCC为逗号分隔列表

3. 管理发件队列

外发邮件会随机延迟(30-90秒)后发送。您可以在发送前列出或删除这些邮件。

列出所有排队邮件:
bash
python3 ~/.openclaw/workspace/skills/lel-mail/scripts/manage_queue.py --list

按ID删除特定邮件:
bash
python3 ~/.openclaw/workspace/skills/lel-mail/scripts/manage_queue.py --delete

故障排除

当因凭据/配置缺失或无效导致错误时,提示用户协助
  • - 如果邮件完全无法发送,请检查守护进程的定时任务是否正在运行

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 lel-mail-1776420064 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 lel-mail-1776420064 技能

通过命令行安装

skillhub install lel-mail-1776420064

下载

⬇ 下载 lel-mail v1.1.4(免费)

文件大小: 9.75 KB | 发布时间: 2026-4-17 18:36

v1.1.4 最新 2026-4-17 18:36
- Updated the skill description to clarify that receiving emails can trigger agent actions such as adding to memory or sending responses.
- No changes to code or functionality; documentation update only.
返回顶部