← 返回
未分类 Key 中文

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...
通过IMAP/SMTP读写邮件。检查新邮件/未读邮件,获取内容,搜索邮箱,标记已读/未读,发送带附件的邮件等。
rashed-mamoon rashed-mamoon 来源
未分类 clawhub v1.2.6 1 版本 100000 Key: 需要
★ 0
Stars
📥 555
下载
💾 0
安装
1
版本
#latest

概述

email-suite

Email CLI: node scripts/mail.js . 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
IMAP_USER=your@email.com
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
SMTP_USER=your@email.com
SMTP_PASS=your_app_password

Optional

SMTP_FROM=your@email.com  # 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

ProviderIMAP HostPortSMTP HostPortSecure
----------------------------------------------------
Gmailimap.gmail.com993smtp.gmail.com587false
Outlookoutlook.office365.com993smtp.office365.com587false
Hostingerimap.hostinger.com993smtp.hostinger.com465true

Gmail/Outlook: Use App Password

Not your regular password — generate a 16-char App Password:

Essential Commands

CommandDescription
----------------------
checkInbox from cache (~0.2s). Shows sync time. --all for read+unread combined.
syncFetch NEW messages only. Updates cache.
fetch Read email. Shows action hints. Marks as read, updates cache.
send --to x --subject "S" --body "B"Send email
search --from "x" --since 7dSearch cache. --server for full search.
delete 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 <uid1> <uid2>   # Delete multiple
mark-read <uid1> <uid2> # Mark multiple read

Send Options

  • --body-file x.md — Markdown auto-converted to HTML
  • --attach file.pdf — Attachments
  • reply --body "T" — Reply (auto Re: prefix)
  • forward --to x — Forward

Cache

  • .cache/inbox.json — Local cache for fast checks
  • sync = incremental (new msgs only)
  • fetch = always server, marks read, updates cache
  • delete / clear-cache = clears cache

Security

  • Never commit .env to git
  • chmod 600 .env to protect credentials
  • Use App Passwords for Gmail/Outlook (2FA required)

版本历史

共 1 个版本

  • v1.2.6 当前
    2026-05-02 01:46 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Multi-Dimensional Trading System

rashed-mamoon
结构化多时间框架技术分析,使用EMA通道和斐波那契水平,为A股、DSE及加密货币短期交易提供决策支持。
★ 0 📥 454

Bangladesh stock market live data and analytics

rashed-mamoon
孟加拉国股票市场数据与分析,涵盖达卡证券交易所(DSE)的价格、信号、EMA通道和斐波那契水平
★ 1 📥 416

Report Generator EN

rashed-mamoon
根据自然语言输入生成结构清晰的每周工作报告,依据角色提供洞察分析并支持自定义语气。
★ 0 📥 389