Agent skill

Imap Smtp Email

by freestylefly in freestylefly/wesight

Read and send email via IMAP/SMTP. An agent skill from freestylefly/wesight.

MITAuto-check: notesBackend & APIs

Install Imap Smtp Email

skills CLI
$ npx skills add freestylefly/wesight --skill imap-smtp-email -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install freestylefly/wesight imap-smtp-email --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/freestylefly/wesight.git skills-src && mkdir -p .claude/skills && cp -r skills-src/SKILLs/imap-smtp-email .claude/skills/imap-smtp-email && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
imap-smtp-email
GitHub stars
944
Used in
3 other repos
Token cost
~1.7k tokens
SKILL.md length
457 words
Files
7 (incl. scripts)
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

Read and send email via IMAP/SMTP. An agent skill from freestylefly/wesight.

  • Tasks that involve Transactional email
  • SKILL.md covers Important: Configuration is…, Configuration Reference, Common Email Servers and IMAP Commands (Receiving Email), plus 4 more sections
  • Runs JavaScript and Shell scripts from its folder; calls node and npm
  • Tasks that involve Email management

What it does

Imap Smtp Email is an agent skill from freestylefly/wesight. 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. Works with any IMAP/SMTP server including Gmail, Outlook, 163.com, vip.163.com, 126.com, vip.126.com, 188.com, and vip.188.com.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts (for example `README.md`, `_meta.json` and `package.json`).

It sits in Backend & APIs, covering Transactional email and Email management. It works with Gmail. The repository describes itself as: Open-source desktop AI agent workspace with one-click Claude Code, Codex, OpenClaw, Hermes Agent setup and custom LLM model routing. The licence is MIT.

When your agent uses it

  • Tasks that involve Transactional email
  • Tasks that involve Email management

Example prompts

  • “/imap-smtp-email”

Requirements

  • Node.js
  • A Bash shell

What it can do on your machine

Read from SKILL.md and the folder at commit c913cd9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (JavaScript and Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • node
    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Imap Smtp Email loads about 1.7k tokens when it runs. Until then it costs about 74 tokens; SKILL.md has 457 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~74
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:14
    The `.env` configuration file is automatically managed by WeSight Settings (邮箱设置). **Do NOT ask the user to create or ed
  • NoteMentions a .env fileSKILL.md:16
    The `.env` file is located in this skill's directory (same folder as this SKILL.md file). The scripts load it automatica
  • NoteMentions a .env fileSKILL.md:20
    Create `.env` in the skill folder or set environment variables:
  • NoteMentions a .env fileSKILL.md:180
    - Store credentials in `.env` (add to `.gitignore`)

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from freestylefly/wesight at commit c913cd9, republished under its MIT licence (© freestylefly). 457 words, ~1,659 tokens.

Download SKILL.mdSave it as .claude/skills/imap-smtp-email/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
imap-smtp-email
description
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. Works with any IMAP/SMTP server including Gmail, Outlook, 163.com, vip.163.com, 126.com, vip.126.com, 188.com, and vip.188.com.
official
true
version
1.0.1

IMAP/SMTP Email Tool

Read, search, and manage email via IMAP protocol. Send email via SMTP. Supports Gmail, Outlook, 163.com, vip.163.com, 126.com, vip.126.com, 188.com, vip.188.com, and any standard IMAP/SMTP server.

Important: Configuration is Pre-configured

The .env configuration file is automatically managed by WeSight Settings (邮箱设置). Do NOT ask the user to create or edit .env — just run the commands directly. If credentials are wrong, the scripts will return a clear error message; only then should you inform the user to check their email settings.

The .env file is located in this skill's directory (same folder as this SKILL.md file). The scripts load it automatically via an absolute path, regardless of the current working directory.

Configuration Reference

Create .env in the skill folder or set environment variables:

bash
# IMAP Configuration (receiving email)
IMAP_HOST=imap.gmail.com          # Server hostname
IMAP_PORT=993                     # Server port
IMAP_USER=your@email.com
IMAP_PASS=your_password
IMAP_TLS=true                     # Use TLS/SSL connection
IMAP_REJECT_UNAUTHORIZED=true     # Set to false for self-signed certs
IMAP_MAILBOX=INBOX                # Default mailbox

# SMTP Configuration (sending email)
SMTP_HOST=smtp.gmail.com          # SMTP server hostname
SMTP_PORT=587                     # SMTP port (587 for STARTTLS, 465 for SSL)
SMTP_SECURE=false                 # true for SSL (465), false for STARTTLS (587)
SMTP_USER=your@gmail.com          # Your email address
SMTP_PASS=your_password           # Your password or app password
SMTP_FROM=your@gmail.com          # Default sender email (optional)
SMTP_REJECT_UNAUTHORIZED=true     # Set to false for self-signed certs

Common Email Servers

ProviderIMAP HostIMAP PortSMTP HostSMTP Port
163.comimap.163.com993smtp.163.com465
vip.163.comimap.vip.163.com993smtp.vip.163.com465
126.comimap.126.com993smtp.126.com465
vip.126.comimap.vip.126.com993smtp.vip.126.com465
188.comimap.188.com993smtp.188.com465
vip.188.comimap.vip.188.com993smtp.vip.188.com465
yeah.netimap.yeah.net993smtp.yeah.net465
Gmailimap.gmail.com993smtp.gmail.com587
Outlookoutlook.office365.com993smtp.office365.com587
QQ Mailimap.qq.com993smtp.qq.com587

Important for 163.com:

  • Use authorization code (授权码), not account password
  • Enable IMAP/SMTP in web settings first

IMAP Commands (Receiving Email)

check

Check for new/unread emails.

bash
node scripts/imap.js check [--limit 10] [--mailbox INBOX] [--recent 2h]

Options:

  • --limit <n>: Max results (default: 10)
  • --mailbox <name>: Mailbox to check (default: INBOX)
  • --recent <time>: Only show emails from last X time (e.g., 30m, 2h, 7d)
fetch

Fetch full email content by UID.

bash
node scripts/imap.js fetch <uid> [--mailbox INBOX]
download

Download all attachments from an email, or a specific attachment.

bash
node scripts/imap.js download <uid> [--mailbox INBOX] [--dir <path>] [--file <filename>]

Options:

  • --mailbox <name>: Mailbox (default: INBOX)
  • --dir <path>: Output directory (default: current directory)
  • --file <filename>: Download only the specified attachment (default: download all)
Show full SKILL.md (176 more words)Show less

Search emails with filters.

bash
node scripts/imap.js search [options]

Options:
  --unseen           Only unread messages
  --seen             Only read messages
  --from <email>     From address contains
  --subject <text>   Subject contains
  --recent <time>    From last X time (e.g., 30m, 2h, 7d)
  --since <date>     After date (YYYY-MM-DD)
  --before <date>    Before date (YYYY-MM-DD)
  --limit <n>        Max results (default: 20)
  --mailbox <name>   Mailbox to search (default: INBOX)
mark-read / mark-unread

Mark message(s) as read or unread.

bash
node scripts/imap.js mark-read <uid> [uid2 uid3...]
node scripts/imap.js mark-unread <uid> [uid2 uid3...]
list-mailboxes

List all available mailboxes/folders.

bash
node scripts/imap.js list-mailboxes

SMTP Commands (Sending Email)

send

Send email via SMTP.

bash
node scripts/smtp.js send --to <email> --subject <text> [options]

Required:

  • --to <email>: Recipient (comma-separated for multiple)
  • --subject <text>: Email subject, or --subject-file <file>

Optional:

  • --body <text>: Plain text body
  • --html: Send body as HTML
  • --body-file <file>: Read body from file
  • --html-file <file>: Read HTML from file
  • --cc <email>: CC recipients
  • --bcc <email>: BCC recipients
  • --attach <file>: Attachments (comma-separated)
  • --from <email>: Override default sender

Examples:

bash
# Simple text email
node scripts/smtp.js send --to recipient@example.com --subject "Hello" --body "World"

# HTML email
node scripts/smtp.js send --to recipient@example.com --subject "Newsletter" --html --body "<h1>Welcome</h1>"

# Email with attachment
node scripts/smtp.js send --to recipient@example.com --subject "Report" --body "Please find attached" --attach report.pdf

# Multiple recipients
node scripts/smtp.js send --to "a@example.com,b@example.com" --cc "c@example.com" --subject "Update" --body "Team update"
test

Test SMTP connection by sending a test email to yourself.

bash
node scripts/smtp.js test

Dependencies

bash
npm install

Security Notes

  • Store credentials in .env (add to .gitignore)
  • For Gmail: use App Password if 2FA is enabled
  • For 163.com: use authorization code (授权码), not account password

Troubleshooting

Connection timeout:

  • Verify server is running and accessible
  • Check host/port configuration

Authentication failed:

  • Verify username (usually full email address)
  • Check password is correct
  • For 163.com: use authorization code, not account password
  • For Gmail: use App Password if 2FA enabled

TLS/SSL errors:

  • Match IMAP_TLS/SMTP_SECURE setting to server requirements
  • For self-signed certs: set IMAP_REJECT_UNAUTHORIZED=false or SMTP_REJECT_UNAUTHORIZED=false

© freestylefly, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts) in SKILLs/imap-smtp-email of freestylefly/wesight.

  • SKILL.md
  • README.md
  • _meta.json
  • package.json
  • scripts/imap.js
  • scripts/smtp.js
  • setup.sh

Open the folder on GitHubat commit c913cd9

Used in 3 other repositories

We found 3 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 3 other GitHub owners. This page covers the copy in freestylefly/wesight, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Imap Smtp Email next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Imap Smtp Email compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Imap Smtp Email this skillfreestylefly/wesight9443 repos~1.7kAutomated safety check: NotesMIT
Smtp Email Senderopenakita/openakita2k—~693Automated safety check: NotesAGPL-3.0
Deliverability Test Publicgrowthenginenowoslawski/coldoutboundskills751—~1kAutomated safety check: PassMIT
Mjml Email TemplatesAaronontheweb/dotnet-skills1.2k1 repos~2.7kAutomated safety check: PassMIT
Imap Smtp Emailwentorai/Research-Claw858—~1.3kAutomated safety check: NotesCustom licence
Google Workspaceericrisco/rsc-harness174—~3.2kAutomated safety check: PassMIT

Similar skills

  • Smtp Email Sender

    openakita/openakita

    Send emails via SMTP (Gmail, Outlook, etc.). An agent skill from openakita/openakita.

    2k GitHub stars~693 tokensUpdated 15 days ago
    Backend & APIsAuto-check: notes
  • Deliverability Test Public

    growthenginenowoslawski/coldoutboundskills

    Compare reply rates, bounce rates, and positive reply rates broken down by inbox type (SMTP / Gmail / Outlook) for a Smartlead account.

    751 GitHub stars~1k tokensUpdated 3 days ago
    Backend & APIsAuto-check passed
  • Mjml Email Templates

    Aaronontheweb/dotnet-skills

    Build responsive email templates using MJML markup language.

    1.2k GitHub starsUsed in 1 repo~2.7k tokens
    Backend & APIsAuto-check passed
  • Imap Smtp Email

    wentorai/Research-Claw

    Read, search, and manage email via IMAP protocol. An agent skill from wentorai/Research-Claw.

    858 GitHub stars~1.3k tokensUpdated 1 mo ago
    Backend & APIsAuto-check: notes
  • Google Workspace

    ericrisco/rsc-harness

    A skill your agent uses when server-side code reads or writes Gmail, Drive, Calendar, or Sheets with a GCP service account and no human in the OAuth loop: picking the auth mode (app-owned vs…

    174 GitHub stars~3.2k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Email Deliverability

    ericrisco/rsc-harness

    A skill your agent uses when mail already sent lands in spam, is rejected, or fails the Gmail/Yahoo bulk-sender checks and the fix is authentication and reputation, not the sending code…

    174 GitHub stars~2.3k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed

More from freestylefly/wesight

All 17 skills in this repo
  • Develop Web Game

    freestylefly/wesight

    A skill your agent uses when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with…

    944 GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Web Search

    freestylefly/wesight

    Real-time web search using Playwright-controlled browser. An agent skill from freestylefly/wesight.

    944 GitHub starsUsed in 1 repo~4k tokens
    Auto-check: notes
  • Technology Search

    freestylefly/wesight

    Search tech blogs, developer forums, and IT media (TechCrunch, Hacker News, 36氪, etc.) for software and hardware industry updates with heat ranking and EN↔CN translation.

    944 GitHub stars~3.3k tokensUpdated 8 days ago
    Auto-check passed
  • Content Planner

    freestylefly/wesight

    WeChat Official Account topic planning and content calendar management.

    944 GitHub stars~1.2k tokensUpdated 8 days ago
    Auto-check passed
  • Films Search

    freestylefly/wesight

    Search cloud drives for downloadable film and TV resources (movies, TV series, anime).

    944 GitHub stars~825 tokensUpdated 8 days ago
    Auto-check: notes
  • Create Plan

    freestylefly/wesight

    Create a concise plan. An agent skill from freestylefly/wesight.

    944 GitHub starsUsed in 4 repos~611 tokens
    Auto-check passed

Works with

Categories

Questions about Imap Smtp Email

What does Imap Smtp Email do?

Read and send email via IMAP/SMTP. An agent skill from freestylefly/wesight. Imap Smtp Email is an agent skill from freestylefly/wesight. Read and send email via IMAP/SMTP.

When should I use Imap Smtp Email?

Imap Smtp Email fits situations like: tasks that involve Transactional email; tasks that involve Email management.

How do I install Imap Smtp Email in Claude Code?

Run `npx skills add freestylefly/wesight --skill imap-smtp-email -a claude-code`. Or copy the skill folder (SKILLs/imap-smtp-email in freestylefly/wesight) into .claude/skills/imap-smtp-email in your project. Claude Code loads it when a task matches its description.

How do I install Imap Smtp Email in Codex?

Run `npx skills add freestylefly/wesight --skill imap-smtp-email -a codex`. Or copy the skill folder (SKILLs/imap-smtp-email in freestylefly/wesight) into .agents/skills/imap-smtp-email in your project. Codex loads it when a task matches its description.

Can I use Imap Smtp Email in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add freestylefly/wesight --skill imap-smtp-email -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/imap-smtp-email, .gemini/skills/imap-smtp-email, .github/skills/imap-smtp-email and .opencode/skills/imap-smtp-email in your project.

What does Imap Smtp Email need to run?

Going by SKILL.md and its folder, Imap Smtp Email needs JavaScript and a shell for the scripts in its folder and the command-line tools its instructions call (node and npm). Our summary lists: Node.js; A Bash shell.

Does Imap Smtp Email access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Imap Smtp Email safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Imap Smtp Email use?

Imap Smtp Email is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Imap Smtp Email use?

About 1.7k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Imap Smtp Email?

Skills that share tags, products or a category with Imap Smtp Email: Smtp Email Sender (openakita/openakita, 2k stars), Deliverability Test Public (growthenginenowoslawski/coldoutboundskills, 751 stars), Mjml Email Templates (Aaronontheweb/dotnet-skills, 1.2k stars) and Imap Smtp Email (wentorai/Research-Claw, 858 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Imap Smtp Email?

freestylefly (a GitHub user) maintains it in freestylefly/wesight, which has 944 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 1, 2026.

Source: freestylefly/wesight on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.