---
name: Email Management
slug: email-management
category: Automation
description: Email Management reads, sends, searches, and labels mail through gog for Gmail or himalaya for IMAP. Use it to manage inboxes, reply to threads, and move messages across labels and folders.
github: "https://github.com/daxaur/openpaw/tree/main/skills/c-email"
language: TypeScript
stars: 167
forks: 11
install: "npx degit https://github.com/daxaur/openpaw/tree/main/skills/c-email ~/.claude/skills/c-email"
installs_to: ~/.claude/skills/c-email
source_path: skills/c-email/SKILL.md
collection_size: 25
category_size: 2226
collection_url: "https://dirskills.com/collections/daxaur/openpaw"
added: 2026-09-08T05:34:30.304Z
last_synced: 2026-09-08T05:34:30.304Z
canonical_url: "https://dirskills.com/skills/email-management"
---

# Email Management

Email Management reads, sends, searches, and labels mail through gog for Gmail or himalaya for IMAP. Use it to manage inboxes, reply to threads, and move messages across labels and folders.

**Install:**

```bash
npx degit https://github.com/daxaur/openpaw/tree/main/skills/c-email ~/.claude/skills/c-email
```

## README

This skill manages email via `gog` (Gmail) or `himalaya` (IMAP). Check availability with `which gog himalaya`.

## Gmail — `gog mail` (gogcli)

```bash
gog mail list                              # List inbox messages
gog mail list --label "INBOX" --max 20
gog mail read <message-id>                 # Read a message
gog mail send --to "user@example.com" --subject "Subject" --body "Body"
gog mail reply <message-id> --body "Reply text"
gog mail search "from:alice subject:report"
gog mail search "is:unread after:2026/02/01"
gog mail label add <message-id> "Label"
gog mail label remove <message-id> "INBOX"
gog mail archive <message-id>
gog mail trash <message-id>
gog mail labels                            # List all labels
gog mail thread <thread-id>                # View full thread
```

## IMAP — `himalaya`

```bash
himalaya list                              # List inbox
himalaya list -m 50                        # List last 50 messages
himalaya read <id>                         # Read message
himalaya write                             # Compose new message (interactive)
himalaya send --to "user@example.com" --subject "Subj" < body.txt
himalaya reply <id>
himalaya forward <id>
himalaya search "subject:report"
himalaya move <id> "Archive"               # Move to folder
himalaya delete <id>
himalaya folders                           # List folders
himalaya --account work list               # Use a specific account
```

## Usage Guidelines

- Prefer `gog` for Gmail accounts; prefer `himalaya` for non-Gmail IMAP.
- Use `gog mail search` with Gmail search syntax (from:, to:, subject:, is:unread, has:attachment).
- For sending with body content, pass the body directly or pipe a file.
- Both tools require prior authentication setup.

## Notes

- `gog` requires Google OAuth configured via `gog auth`.
- `himalaya` requires IMAP credentials in `~/.config/himalaya/config.toml`.
