Our review
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
Task Prioritizer
Productivity
Prioritizes your tasks using Eisenhower, ICE, and RICE frameworks.
Weekly Status Report Generator
Productivity
Generate structured and concise weekly status reports.
Daily Standup Report
Productivity
Generates structured and concise daily standup reports.