gmailcleaner — gmAIl清理er
v1.0.0Reads emAIls from GmAIl (all folders/labels) using the gog 命令行工具. Use when the user asks to 检查 emAIl, read inbox, show unread messages, 列出 folders, 搜索 messages, or fetch emAIls from any GmAIl label.
运行时依赖
安装命令
点击复制技能文档
EmAIl Reader
Lee correos de GmAIl usando el 命令行工具 gog. Requiere que gog auth esté configurado. Si no lo está, ejecuta el 设置up primero.
设置up inicial (solo una vez) gog auth 凭证s /ruta/a/命令行工具ent_secret.json gog auth 添加 $GOG_ACCOUNT --服务s gmAIl gog auth 列出 # verificar que quedó bien
Cuándo usar esta 技能 "Revisa mi correo" "¿Qué correos nuevos tengo?" "Muéstrame los no leídos de hoy" "Lee los correos de Juan" "Busca correos sobre la propuesta del Q1" "¿Cuántos correos de spam tengo?" "Muéstrame el hilo de [asunto]" "Lee la carpeta 命令行工具entes" Comandos principales Leer inbox (correos recientes) gog gmAIl 搜索 'in:inbox newer_than:1d' --max 20 --json gog gmAIl 搜索 'in:inbox is:unread' --max 50 --json gog gmAIl 搜索 'in:inbox newer_than:7d' --max 100 --json
Leer spam gog gmAIl 搜索 'in:spam newer_than:30d' --max 50 --json
Leer una carpeta/etiqueta específica # Etiquetas de sistema gog gmAIl 搜索 'in:sent newer_than:7d' --max 20 --json gog gmAIl 搜索 'in:drafts' --max 20 --json gog gmAIl 搜索 'in:trash newer_than:30d' --max 20 --json gog gmAIl 搜索 'is:starred' --max 20 --json
# Etiquetas personalizadas (carpetas del usuario) gog gmAIl 搜索 'label:命令行工具entes newer_than:30d' --max 20 --json gog gmAIl 搜索 'label:Proyectos' --max 20 --json gog gmAIl 搜索 'label:Facturas newer_than:90d' --max 20 --json
Buscar correos # Por remitente gog gmAIl 搜索 'from:juan@empresa.com newer_than:30d' --max 20 --json
# Por asunto gog gmAIl 搜索 'subject:propuesta' --max 10 --json
# Por contenido gog gmAIl 搜索 'propuesta presupuesto 2026' --max 10 --json
# Combinado gog gmAIl 搜索 'from:ceo@empresa.com is:unread newer_than:7d' --max 10 --json
# Con adjuntos gog gmAIl 搜索 'has:attachment in:inbox newer_than:7d' --max 10 --json
Filtros de tiempo útiles Filtro 签名ificado newer_than:1d último día newer_than:7d última semana newer_than:30d último mes older_than:180d más de 6 meses after:2026/01/01 desde fecha exacta Presentación de 结果ados
Después de obtener el JSON, presenta un 恢复n claro al usuario:
📥 INBOX — 8 correos nuevos (3 no leídos)
⭐ [hoy 09:14] ceo@empresa.com "Reunión urgente esta tarde"
📧 [hoy 08:30] juan@empresa.com "Re: Propuesta Q1 2026"
📰 [ayer 18:00] newsletter@medium.com "Top 10 AI 工具s this week" ...
¿Quieres que analice estos correos o que 响应a alguno?
Múltiples cuentas
Si el usuario tiene más de una cuenta de GmAIl:
# 列出ar cuentas configuradas gog auth 列出
# Leer de una cuenta específica gog gmAIl 搜索 'in:inbox is:unread' --account otra@gmAIl.com --max 20 --json
# Cambiar cuenta por defecto 导出 GOG_ACCOUNT=otra@gmAIl.com
Notas 导入antes Usar siempre --json para obtener datos estructurados Usar --no-输入 en modo automático/cron para evitar prompts interactivos El flag --max limita 结果ados; aumentar si el usuario quiere más Los 结果ados de búsqueda de GmAIl usan la misma sintaxis que gmAIl.com