Skip to content

maho mail thread

Retrieve all emails in a conversation thread by Message-ID.

Terminal window
maho mail thread --account-id <account_id> --message-id <message_id> [--json]
FlagTypeDescription
--account-idstringAccount ID containing the message
--message-idstringMessage-ID header value of any email in the thread
--jsonOutput as JSON
Terminal window
# View a thread
maho mail thread --account-id acc1 --message-id "<msg1@example.com>"
# Get thread as JSON
maho mail thread --account-id acc1 --message-id "<msg1@example.com>" --json
# Summarize a thread with AI
maho mail thread --account-id acc1 --message-id "<msg1@example.com>" --json | llm 'summarize this email thread'

The optional standalone maho-mail binary exposes the same query with positional arguments instead of flags:

Terminal window
maho-mail thread <account_id> <message_id> [--json]