返回顶部
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
安全检测
已通过
769
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

lel-mail

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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部