Skip to content

maho list

List emails in a specific folder, sorted by date descending.

Terminal window
maho list <account_id> <folder_id> [flags]

| Argument | Type | Description | |----------|------|-------------| | account_id | string | Account ID | | folder_id | string | Folder ID (use maho folders to find) |

| Flag | Type | Default | Description | |------|------|---------|-------------| | --limit | i64 | 20 | Maximum number of emails to return | | --offset | i64 | 0 | Offset for pagination | | --json | — | — | Output as JSON |

Terminal window
# List latest 20 emails in INBOX
maho list acc1 fold1
# List 50 emails with offset, as JSON
maho list acc1 fold1 --limit 50 --offset 0 --json
# Pipe to jq for processing
maho list acc1 fold1 --json | jq '.[].subject'