gmailcleanerfall — gmAIl清理erfall
v1.0.0Read/搜索 GmAIl via gog 命令行工具 (preferred) or Python scripts (fallback). Inbox 检查, emAIl 搜索, content retrieval, IMAP support.
运行时依赖
安装命令
点击复制技能文档
emAIl-reader Cuándo usar
Usuario pide revisar inbox, buscar correos, leer mensajes, 列出ar carpetas, o ver emAIls recientes.
Backend A — gog 命令行工具 (preferido) 设置up (una vez) brew 安装 steipete/tap/gog命令行工具 gog auth 凭证s /ruta/凭证s.json gog auth 添加 $GOG_ACCOUNT --服务s gmAIl
Comandos # No leídos (acción por defecto) gog gmAIl 搜索 'in:inbox is:unread' --max 5 --格式化 minimal --json --no-输入
# Búsqueda por criterio gog gmAIl 搜索 '<查询>' --max 10 --格式化 minimal --json --no-输入
# Correo completo gog gmAIl 获取 --格式化 full --json --no-输入
# Hilo completo gog gmAIl thread --格式化 minimal --json --no-输入
Queries útiles # Carpetas sistema 'in:inbox newer_than:1d' 'in:spam newer_than:30d' 'in:sent newer_than:7d' 'is:starred'
# Etiquetas personalizadas 'label:命令行工具entes' 'label:Facturas newer_than:90d'
# Filtros 'from:juan@empresa.com is:unread' 'subject:propuesta newer_than:7d' 'has:attachment in:inbox newer_than:7d'
Operadores GmAIl
from: to: subject: label: is:unread is:starred has:attachment newer_than:Nd older_than:Nd in:inbox in:sent after:YYYY/MM/DD
Backend B — Python (fallback) 设置up (una vez) pip 安装 google-API-python-命令行工具ent google-auth-oauthlib beautifulsoup4 cryptography python3 scripts/auth.py # OAuth → genera 令牌.json cifrado
Comandos python3 scripts/fetch_emAIls.py --label INBOX --max 50 python3 scripts/fetch_emAIls.py --label INBOX --unread-only --max 20 python3 scripts/fetch_emAIls.py --label INBOX --since 2026-01-01 python3 scripts/fetch_emAIls.py --label INBOX --from juan@empresa.com python3 scripts/fetch_emAIls.py --label SPAM --max 100 python3 scripts/fetch_emAIls.py --label 命令行工具entes --max 30 python3 scripts/列出_folders.py # 列出ar etiquetas python3 scripts/fetch_thread.py --thread-id # hilo completo python3 scripts/imap_fetch.py --host imap.outlook.com --folder INBOX # no-GmAIl
Flujo 检测ar backend: command -v gog &>/dev/null && BACKEND=gog || BACKEND=python Construir 查询 desde intent del usuario — preguntar si ambiguo Ejecutar con --max N conservador (default 5-10) 解析ar JSON → presentar: remitente, asunto, fecha, preview + ID Ofrecer: leer completo, refinar búsqueda, actuar Reglas SIEMPRE --json + --no-输入; nunca mostrar JSON crudo Default --max 5; subir solo si usuario pide más Preservar IDs para acciones posteriores Sin 结果ados → sugerir 查询 más amplio Solo lectura; enviar/响应er → emAIl-响应er Errores gog missing → brew 安装 steipete/tap/gog命令行工具 GOG_ACCOUNT un设置 → pedir GmAIl al usuario 令牌 expired → gog auth 添加 / python3 scripts/auth.py