Skip to content
Back to skills

Check Email

ASecurity

Read recent emails from a Gmail inbox via IMAP. Returns text with subject, sender, date, and body per email. Read-only — never marks messages as read.

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 6, 2026
toolsgosecurity

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 6, 2026

npx -y skills add bdambrosio/Cognitive_workbench --skill check-email --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Check Email?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Check Email
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bdambrosio-check-email/badge)](https://www.skillsdirectory.com/skills/bdambrosio-check-email)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: check-email
description: Read recent emails from a Gmail inbox via IMAP. Returns text with subject, sender, date, and body per email. Read-only — never marks messages as read.
args:
  folder: optional string (default "INBOX") — IMAP folder, e.g. "[Gmail]/Sent Mail", "[Gmail]/All Mail"
  limit: optional int (default 10, max 50) — max emails to return
  since: optional string — emails on or after this date, YYYY-MM-DD
  before: optional string — emails before this date, YYYY-MM-DD
  from_addr: optional string — filter by sender address or name
  subject: optional string — filter by subject line
  query: optional string — full-text search (IMAP TEXT command)
  unseen_only: optional string (default "false") — "true" to return only unread messages
---

# check-email

Read emails from Gmail using IMAP. Newest first. Connects via SSL to `imap.gmail.com:993`, opens folders in read-only mode (no side effects on the mailbox).

## Required environment

- `GMAIL_ADDRESS` — Gmail address (IMAP username)
- `GMAIL_APP_PASSWORD` — 16-character App Password from Google Account → Security → App Passwords

Without both, the tool returns an error and no data.

## Gmail folder names

| Folder | IMAP name |
|---|---|
| Inbox | `INBOX` |
| Sent | `[Gmail]/Sent Mail` |
| Drafts | `[Gmail]/Drafts` |
| All Mail | `[Gmail]/All Mail` |
| Starred | `[Gmail]/Starred` |
| Important | `[Gmail]/Important` |

## Examples

```json
{"thought": "check the last 5 inbox emails", "tool": "check-email", "limit": 5}
```

```json
{"thought": "find unread emails about the quarterly report", "tool": "check-email", "query": "quarterly report", "unseen_only": "true"}
```

```json
{"thought": "emails from boss this month", "tool": "check-email", "from_addr": "boss@company.com", "since": "2026-05-01"}
```

## Notes

- Email body is capped at 50,000 characters per message.
- Body prefers plain text; HTML is tag-stripped as fallback.

Files in this skill

  • Skill.md1.9 KB
  • tool.py17.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…