Skip to content

maho get

Retrieve the full content of a specific email, including body, headers, and attachment metadata.

Terminal window
maho get <email_id> [flags]

| Argument | Type | Description | |----------|------|-------------| | email_id | string | Email ID |

| Flag | Description | |------|-------------| | --json | Output as JSON |

Terminal window
# Display email content
maho get em1
# Get as JSON and pipe to an LLM
maho get em1 --json | llm 'summarize this email'
# Extract specific fields
maho get em1 --json | jq '{subject: .subject, from: .from, date: .date}'