imap-smtp-email
하는 일
이 스킬은 에이전트가 IMAP과 SMTP를 이용해 내 메일 계정으로 메일을 읽고, 검색하고, 보내도록 합니다. AI 어시스턴트로 메일함을 처리하려는 사람을 위한 스킬입니다.
사용하는 경우
- ✓새 메일이나 읽지 않은 메일을 확인하고 싶을 때.
- ✓메일함에서 특정 메일을 찾아야 할 때.
- ✓첨부 파일이 있는 메일을 보내고 싶을 때.
스킬 링크
https://github.com/netease-youdao/LobsterAI/blob/main/SKILLs/imap-smtp-email/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“지난 하루 동안 받은 읽지 않은 메일을 확인하고, 답장이 필요한 메일을 요약해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 앱의 이메일 설정에 저장된 계정 정보를 사용하는 내장 이메일 스크립트를 실행합니다. 메일을 가져오고, 폴더를 검색하고, 메일을 표시하고, 설정한 계정으로 메일을 보냅니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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 accounts.json configuration file is automatically managed by LobsterAI Settings (邮箱设置). Legacy .env configuration is still supported as a fallback for older users. Do NOT ask the user to create or edit these files — 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 configuration files are located in this skill's directory (same folder as this SKILL.md file). The scripts load them automatically via absolute paths, regardless of the current working directory.
Use the provided scripts as the only email transport interface. Do not write temporary IMAP/SMTP scripts, do not use raw sockets, OpenSSL, net, tls, or alternate mail clients, and do not inspect .env, accounts.json, or script source unless the official command output explicitly reports missing configuration and the user asks you to diagnose it. If an official command fails or times out, report that command result and suggest checking LobsterAI Settings; do not implement a fallback protocol client.
Do not claim that node-imap, nodemailer, or another dependency is broken unless an official script or verified stack trace proves it. A successful command means the configured email account works; a timeout means the current command timed out, not that the dependency is defective.
Command results intentionally redact account metadata. In user-facing replies, use the redacted account label/email from the JSON result and do not repeat full configured email addresses unless the user explicitly asks for the exact address. Email content fields such as sender, subject, and message body may still be shown when they are the requested result.
Never ask the user to send an email authorization code, app password, account password, or other credential in chat. If an account is disabled, incomplete, or has invalid credentials, ask the user to enable or update it in LobsterAI Settings > Email Settings, then rerun the official command.
For multi-account setups:
- Run
node scripts/imap.js accountsornode scripts/smtp.js accountsto list configured account IDs without exposing secrets. - Omit
--accountto use the default enabled account. - Pass
--account <id>to use a specific account. - Pass
--all-accountsonly for read/list commands that support fan-out (check,search,list-mailboxes). - JSON results for read/list commands include
success, redacted account metadata,command,count, and result arrays such asmessagesormailboxes.
For sending email, always review recipient, subject, sender account, and body with the user first. Sending is blocked unless --confirmed is passed.
For SMTP send results, success: true means the sending SMTP server accepted the message for processing. Do not claim final delivery or inbox receipt. Report it as "submitted to the SMTP server" and mention that the recipient provider may still reject it later via a bounce message. If rejected or pending recipients are present, call them out explicitly.
Never use a redacted account email such as ab***@example.com as a recipient address. If the user asks to send to another configured email account, use that account's id with --to-account <id> so the script resolves the real address internally without exposing it.
Configuration Reference
Create .env in the skill folder or set environment variables:
# 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=yo
자주 묻는 질문
계정을 직접 설정해야 하나요?
계정은 앱의 이메일 설정에서 설정하며, 스킬이 이를 자동으로 사용합니다.
어떤 메일 서비스가 작동하나요?
설명에 따르면 Gmail, Outlook, 163.com, 126.com, 188.com 및 그 밖의 표준 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. 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.
repo: netease-youdao/LobsterAI
인기도
- GitHub 스타
- 6.2k
- 순위
- #14413
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
article-writer
6.2k에이전트가 다섯 가지 스타일 중 하나로 글을 쓰도록 돕습니다. 자료 수집과 개요부터 최종 서식이 갖춰진 초안까지 포함합니다.
content-planner
6.2k에이전트가 최근 인기 기사와 관련 검색어를 확인해 기사 주제의 콘텐츠 캘린더를 계획하도록 돕습니다.
daily-trending
6.2k에이전트가 여러 중국 플랫폼에서 오늘의 인기 주제를 모으고, 가장 중요한 것을 골라 주도록 돕습니다.
local-tools
6.2k에이전트가 Mac이나 Windows 컴퓨터에서 캘린더 일정을 보고, 만들고, 바꾸고, 삭제하도록 돕습니다.
비슷한 스킬
discord-user-post
394k에이전트가 승인한 메시지를 정확한 채널을 확인한 뒤 Discord 데스크톱 앱에서 내 계정으로 올리도록 돕습니다.
configure-channel
394k에이전트에게 Telegram 같은 채팅 앱을 OpenClaw에 연결하고, 봇 토큰을 안전하게 보관하며, 메시지가 오가는지 확인하는 방법을 가르칩니다.
discord
394k에이전트가 OpenClaw를 통해 Discord 메시지를 읽고, 보내고, 수정하고, 반응을 달며, 변경 전에 정확한 메시지를 확인하도록 돕습니다.