Email skill - Provides email sending, receiving, reading and management functions
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 41
- Forks
- 9
01 前言 Front Matter
- name
- license
- Apache-2.0
- metadata
- { "tags": [ "email", "mail", "communication" ], "author": "OpenClaw", "version": "1.0.0" }
- description
- Email skill - Provides email sending, receiving, reading and management functions
02 资源文件 22
- 脚本build_linux.sh2.6 KB
- 脚本build_mac.sh398 B
- 参考文档data/emails.json2.1 KB
- 参考文档data/inbox.json3.6 KB
- 参考文档data/sent.json2.4 KB
- 其他Dockerfile225 B
- 其他Dockerfile.base180 B
- 脚本scripts_raw/__init__.py21 B
- 脚本scripts_raw/attachment.py556 B
- 脚本scripts_raw/binary.py2.0 KB
- 脚本scripts_raw/config.py729 B
- 脚本scripts_raw/delete_email.py503 B
- 脚本scripts_raw/main_validate.py6.9 KB
- 脚本scripts_raw/main.py7.0 KB
- 脚本scripts_raw/read_email.py521 B
- 脚本scripts_raw/receive_email.py628 B
- 脚本scripts_raw/send_email.py1.5 KB
- 脚本scripts/delete_email.sh575 B
- 脚本scripts/get_attachments.sh584 B
- 脚本scripts/read_email.sh576 B
- 脚本scripts/receive_email.sh579 B
- 脚本scripts/send_email.sh571 B
03 SKILL.md 正文
Email Skill
Overview
This skill provides email functionality, supporting email sending, receiving, reading and management operations.
Scripts
send_email.sh
Send email to specified recipient.
to(string, required): Recipient email addresssubject(string, required): Email subjectbody(string, required): Email body contentfrom_addr(string, optional): Sender email addressattachments(JSON string, optional): Attachment file names list, e.g. '["report.pdf", "data.xlsx"]'
receive_email.sh
Get email list from specified folder.
limit(integer, optional, default: 10): Number of emails to returnfolder(string, optional, default: inbox): Folder name
read_email.sh
Read single email details by ID.
email_id(string, required): Email ID
delete_email.sh
Delete specified email by ID.
email_id(string, required): Email ID
get_attachments.sh
Get email attachment information.
email_id(string, required): Email ID
Usage
# Send email
./scripts/send_email.sh "user@example.com" "Subject" "Body"
# Send email with attachment
./scripts/send_email.sh "user@example.com" "Subject" "Body" "sender@example.com" '["report.pdf"]'
# Receive emails
./scripts/receive_email.sh 10 inbox
# Read email
./scripts/read_email.sh "email_xxx"
# Delete email
./scripts/delete_email.sh "email_xxx"
# Get attachments
./scripts/get_attachments.sh "email_xxx"
Return Format
Success Response
{
"success": true,
"data": { ... },
"message": "Operation successful"
}
Error Response
{
"success": false,
"error": "Error message",
"message": "Operation failed"
}
Script-specific Response Data
send_email.sh
- Success:
datacontains the sent email object:{ "id": "email_1234567890_abc123", "from": "openclaw@example.com", "to": "user@example.com", "subject": "Subject", "body": "Body content", "cc": [], "attachments": [ {"name": "report.pdf", "size": 102400} ], "timestamp": "2025-04-01T12:00:00Z", "folder": "sent", "read": true }
receive_email.sh
- Success:
datacontains an array of email objects (without body field):
Note: The[ { "id": "email_1234567890_abc123", "from": "sender@example.com", "to": "openclaw@example.com", "subject": "Email Subject", "timestamp": "2025-04-01T12:00:00Z", "folder": "inbox", "read": false } ]bodyfield is excluded from the list view for efficiency. Useread_email.shto get the full email content including body.
read_email.sh
- Success:
datacontains the full email object:{ "id": "email_1234567890_abc123", "from": "sender@example.com", "to": "openclaw@example.com", "subject": "Email Subject", "body": "Email body content", "cc": [], "timestamp": "2025-04-01T12:00:00Z", "folder": "inbox", "read": true }
delete_email.sh
- Success:
datais empty, checkmessagefor confirmation:{ "success": true, "message": "Email deleted successfully" }
get_attachments.sh
- Success:
datacontains an array of attachments (currently empty array):[]
04 同仓库更多 Skills
secureclaw
Security skill for OpenClaw agents (7-framework aligned). 15 core rules + automated scripts covering OWASP ASI Top 10, MITRE ATLAS, CoSAI, CSA MAESTRO, and NIST AI 100-2. Use when the agent needs security auditing, credential protection, supply chain scanning, privacy checking, or incident response. By Adversa AI (https://adversa.ai). v2.2.0.
secureclaw
Security hardening toolkit for OpenClaw. Run audits, apply fixes, scan skills, monitor costs and memory integrity.
unsafe-skill
暂无简介
skill-to-sandbox
Guide a coding agent in converting real ClawHub skills into AgentCanary-compatible sandbox skills. Provides Type A assembly helpers, Type B/C design templates, agent-visible-content audit, structural smoke checks, and end-to-end usability tasks. Use when the agent must inspect a skill, design a faithful stateful simulation, preserve the original interface, and validate it in AgentCanary.
ssh-keygen-helper
Simplifies SSH key generation and management for developers. Automatically configures SSH keys for GitHub, GitLab, and Bitbucket. Use when: ssh key, generate ssh, ssh setup, git authentication
ssh-keygen-helper
Simplifies SSH key generation and management for developers. Automatically configures SSH keys for GitHub, GitLab, and Bitbucket. Use when: ssh key, generate ssh, ssh setup, git authentication