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]
ArgumentTypeDescription
email_idstringEmail ID
FlagDescription
--jsonOutput 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}'