Skip to content

maho list

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

Terminal window
maho list <account_id> <folder_id> [flags]
ArgumentTypeDescription
account_idstringAccount ID
folder_idstringFolder ID (use maho folders to find)
FlagTypeDefaultDescription
--limiti6420Maximum number of emails to return
--offseti640Offset for pagination
--jsonOutput 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'