email-suite (imap+smtp)
/install email-suite-imap-smtp
email-suite
Email CLI: node scripts/mail.js \x3Ccmd>. Works with Gmail, Outlook, Hostinger, any IMAP/SMTP server.
Setup
Automated (recommended)
bash setup.sh
Runs: Node.js check → npm install → provider menu → credentials → display name → signature → summary → connection test
Manual
npm install
cp env.example.txt .env # Edit with your credentials
.env Configuration
Required
# IMAP (receiving)
IMAP_HOST=imap.gmail.com
IMAP_PORT=993
[email protected]
IMAP_PASS=your_app_password
# SMTP (sending)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false # true for port 465, false for 587
[email protected]
SMTP_PASS=your_app_password
Optional
[email protected] # Default sender
FROM_NAME="Your Name" # Display name shown to recipients
IMAP_REJECT_UNAUTHORIZED=false # For self-signed certs
SMTP_REJECT_UNAUTHORIZED=false # For self-signed certs
Provider Presets
| Provider | IMAP Host | Port | SMTP Host | Port | Secure |
|---|---|---|---|---|---|
| Gmail | imap.gmail.com | 993 | smtp.gmail.com | 587 | false |
| Outlook | outlook.office365.com | 993 | smtp.office365.com | 587 | false |
| Hostinger | imap.hostinger.com | 993 | smtp.hostinger.com | 465 | true |
Gmail/Outlook: Use App Password
Not your regular password — generate a 16-char App Password:
- Gmail: myaccount.google.com/apppasswords
- Outlook: Account → Security → App passwords
Essential Commands
| Command | Description |
|---|---|
check |
Inbox from cache (~0.2s). Shows sync time. --all for read+unread combined. |
sync |
Fetch NEW messages only. Updates cache. |
fetch \x3Cuid> |
Read email. Shows action hints. Marks as read, updates cache. |
send --to x --subject "S" --body "B" |
Send email |
search --from "x" --since 7d |
Search cache. --server for full search. |
delete \x3Cuid> |
Delete permanently |
Flags
--all— All messages (read + unread, combined chronological)--limit N— Limit results--since 7d— Time filter (7d, 1m, YYYY-MM-DD)--before YYYY-MM-DD— Before date
Multi-ID
delete \x3Cuid1> \x3Cuid2> # Delete multiple
mark-read \x3Cuid1> \x3Cuid2> # Mark multiple read
Send Options
--body-file x.md— Markdown auto-converted to HTML--attach file.pdf— Attachmentsreply \x3Cuid> --body "T"— Reply (auto Re: prefix)forward \x3Cuid> --to x— Forward
Cache
.cache/inbox.json— Local cache for fast checkssync= incremental (new msgs only)fetch= always server, marks read, updates cachedelete/clear-cache= clears cache
Security
- Never commit
.envto git chmod 600 .envto protect credentials- Use App Passwords for Gmail/Outlook (2FA required)
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install email-suite-imap-smtp - 安装完成后,直接呼叫该 Skill 的名称或使用
/email-suite-imap-smtp触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
email-suite (imap+smtp) 是什么?
Read and send email via IMAP/SMTP. Check for new/unread messages, fetch content, search mailboxes, mark as read/unread, and send emails with attachments, mar... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 231 次。
如何安装 email-suite (imap+smtp)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install email-suite-imap-smtp」即可一键安装,无需额外配置。
email-suite (imap+smtp) 是免费的吗?
是的,email-suite (imap+smtp) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
email-suite (imap+smtp) 支持哪些平台?
email-suite (imap+smtp) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 email-suite (imap+smtp)?
由 Rashed Al Mamoon(@rashed-mamoon)开发并维护,当前版本 v1.2.6。