Automated summary
Manages IMAP emails via a Python script: list messages, read content, and delete by UID.
Strengths
- Works with configuration files for multiple accounts
- Decodes RFC 2047 headers and HTML/text bodies
- Parses bodies to extract summaries, incident fields, and URLs
- Supports search options and date filtering
Limitations
- Requires a local config file with strict permissions
- Does not handle sending emails or large attachments
- Deletion relies on server-side IMAP support
Use this skill to automate checking, analysis, or cleanup of your IMAP mailboxes.
Avoid it if you need a full interactive mail client or if the IMAP server requires OAuth2 not configured.
Security analysis
CautionThe skill uses Python to connect to IMAP servers, read, and delete emails. It requires sensitive credentials and can modify mailbox state, but all actions are legitimate and explicitly requested. No destructive or obfuscated payloads are present.
- •The skill requires a configuration file containing IMAP credentials, which if exposed could allow unauthorized email access.
- •It provides a delete mode that permanently removes emails, but this is an intended feature and requires explicit user action.
Examples
List the latest 10 emails from my default IMAP account using the managing-mails skill.Read the full content of email UID 12345 from my inbox using the managing-mails skill, including HTML body.Delete the email with UID 67890 from my IMAP account using the managing-mails skill, without expunging immediately.name: managing-mails
description: IMAP 프로토콜로 메일함 목록 조회, 본문 읽기, UID 기반 삭제를 수행합니다. 메일 검색, RFC 2047 헤더 디코딩, 파일 기반 설정(MANAGING_MAIL_CONFIG_PATH 또는 --config)으로 메일을 관리해야 할 때 사용하세요.
allowed-tools: Bash(python3:*), Read, Write
IMAP 메일 관리 스킬
IMAP 계정 정보를 파일로 로드하여 메일 목록 조회, 본문 읽기, 삭제를 처리합니다.
빠른 시작
- 설정 파일 준비
mkdir -p ~/.config/managing-mails
cp mails.example.toml ~/.config/managing-mails/mails.toml
chmod 700 ~/.config/managing-mails
chmod 600 ~/.config/managing-mails/mails.toml
export MANAGING_MAIL_CONFIG_PATH=~/.config/managing-mails/mails.toml
- 메일 목록 확인
python3 scripts/imap_read.py --mode list
- 특정 UID 본문 읽기
python3 scripts/imap_read.py --mode read --uid 12345
- 특정 UID 메일 삭제
python3 scripts/imap_read.py --mode delete --uid 12345
CLI 인터페이스
--mode list|read|delete(필수)--account <name>(선택, 미지정 시default_account)--mailbox <name>(선택, 미지정 시 계정 기본값)--since YYYY-MM-DD(선택, 미지정 시 계정별default_since_days)--limit N(기본 20)--uid <uid>(mode=read|delete필수)--query "<search expr>"(선택)--config <path>(선택, 지정 시 최우선)MANAGING_MAIL_CONFIG_PATH(--config미지정 시 필수 환경변수)--include-html(mode=read에서 HTML 본문 포함)--no-expunge(mode=delete에서 즉시 영구삭제 없이\Deleted플래그만 설정)
출력 형식
list:[{uid, date, from, subject, flags}]read:{uid, headers, text_body, parsed_body, html_body?, attachments[]}delete:{uid, deleted_flag_set, expunged, remaining_matches[]}
parsed_body는 사람이 읽기 쉬운 본문 파싱 결과를 제공합니다.
source: 파싱 원본(text/plain또는text/html)summary: 주요 본문 요약(줄바꿈 유지)incident_fields: 장애 문서에서 추출한 핵심 필드(작성자/서비스명/장애 원인/티켓 등)urls: 본문에서 추출한 링크 목록
에러 코드
CONFIG_NOT_FOUNDCONFIG_PARSE_ERRORCONFIG_SCHEMA_ERRORCONFIG_PERMISSION_DENIEDACCOUNT_NOT_FOUNDIMAP_CONNECT_ERRORAUTH_FAILEDMAILBOX_NOT_FOUNDMESSAGE_NOT_FOUNDDELETE_FAILED
세부 동작은 아래 참조 문서를 따릅니다.
- 제공자 특이사항:
references/provider-quirks.md - 검색 레시피:
references/search-recipes.md
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/imap-email-management-ms2s7bja/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/imap-email-management-ms2s7bja' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/imap-email-management-ms2s7bja/download' --output '.skill-downloads/imap-email-management-ms2s7bja/SKILL.md.part' && mv '.skill-downloads/imap-email-management-ms2s7bja/SKILL.md.part' '.skill-downloads/imap-email-management-ms2s7bja/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Bash(python3:*), Read, Write
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/imap-email-management-ms2s7bja/SKILL.md' && test -s '.skill-downloads/imap-email-management-ms2s7bja/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/managing-mails' && cp -R '.skill-downloads/imap-email-management-ms2s7bja' '.claude/skills/managing-mails'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/imap-email-management-ms2s7bja'openskills read 'imap-email-management-ms2s7bja'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/imap-email-management-ms2s7bja/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
PDF Reader
Productivity
Read and extract text from PDF files, including documents, reports, contracts, and spreadsheets. Works with local files, URLs, and WhatsApp attachments. Use whenever PDF content is needed, even if not explicitly requested.
Discord Messaging Workflows
Productivity
Use the message tool to send, edit, and moderate Discord messages with interactive components.
Interactive Verdict Preview
Productivity
Generate an interactive HTML preview of keep/drop verdicts for maintainer review, then process the pasted feedback JSON.