← 返回
沟通协作 Key 中文

gmailcleaner

Reads emails from Gmail (all folders/labels) using the gog CLI. Use when the user asks to check email, read inbox, show unread messages, list folders, search...
使用 gog CLI 读取 Gmail 邮件(所有文件夹/标签),用于检查邮件、读取收件箱、显示未读消息、列出文件夹、搜索等。
coorops25
沟通协作 clawhub v1.0.0 1 版本 99874.8 Key: 需要
★ 0
Stars
📥 798
下载
💾 16
安装
1
版本
#latest

概述

Email Reader

Lee correos de Gmail usando el CLI gog. Requiere que gog auth esté

configurado. Si no lo está, ejecuta el setup primero.

Setup inicial (solo una vez)

gog auth credentials /ruta/a/client_secret.json
gog auth add $GOG_ACCOUNT --services gmail
gog auth list   # verificar que quedó bien

Cuándo usar esta skill

  • "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 Clientes"

Comandos principales

Leer inbox (correos recientes)

gog gmail search 'in:inbox newer_than:1d' --max 20 --json
gog gmail search 'in:inbox is:unread' --max 50 --json
gog gmail search 'in:inbox newer_than:7d' --max 100 --json

Leer spam

gog gmail search 'in:spam newer_than:30d' --max 50 --json

Leer una carpeta/etiqueta específica

# Etiquetas de sistema
gog gmail search 'in:sent newer_than:7d' --max 20 --json
gog gmail search 'in:drafts' --max 20 --json
gog gmail search 'in:trash newer_than:30d' --max 20 --json
gog gmail search 'is:starred' --max 20 --json

# Etiquetas personalizadas (carpetas del usuario)
gog gmail search 'label:Clientes newer_than:30d' --max 20 --json
gog gmail search 'label:Proyectos' --max 20 --json
gog gmail search 'label:Facturas newer_than:90d' --max 20 --json

Buscar correos

# Por remitente
gog gmail search 'from:juan@empresa.com newer_than:30d' --max 20 --json

# Por asunto
gog gmail search 'subject:propuesta' --max 10 --json

# Por contenido
gog gmail search 'propuesta presupuesto 2026' --max 10 --json

# Combinado
gog gmail search 'from:ceo@empresa.com is:unread newer_than:7d' --max 10 --json

# Con adjuntos
gog gmail search 'has:attachment in:inbox newer_than:7d' --max 10 --json

Filtros de tiempo útiles

FiltroSignificado
---------------------
newer_than:1dúltimo día
newer_than:7dúltima semana
newer_than:30dúltimo mes
older_than:180dmás de 6 meses
after:2026/01/01desde fecha exacta

Presentación de resultados

Después de obtener el JSON, presenta un resumen 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 tools this week"
  ...

¿Quieres que analice estos correos o que responda alguno?

Múltiples cuentas

Si el usuario tiene más de una cuenta de Gmail:

# Listar cuentas configuradas
gog auth list

# Leer de una cuenta específica
gog gmail search 'in:inbox is:unread' --account otra@gmail.com --max 20 --json

# Cambiar cuenta por defecto
export GOG_ACCOUNT=otra@gmail.com

Notas importantes

  • Usar siempre --json para obtener datos estructurados
  • Usar --no-input en modo automático/cron para evitar prompts interactivos
  • El flag --max limita resultados; aumentar si el usuario quiere más
  • Los resultados de búsqueda de Gmail usan la misma sintaxis que gmail.com

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 22:05 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

gmailcleanerfall

coorops25
通过 gog CLI(首选)或 Python 脚本(备用)读取/搜索 Gmail,支持收件箱检查、邮件搜索、内容获取及 IMAP。
★ 0 📥 803
communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,599
communication-collaboration

Slack

steipete
当需要通过 slack 工具从 Clawdbot 控制 Slack 时使用,包括在频道或私信中回复消息或置顶/取消置顶项目。
★ 157 📥 47,689