Skip to content

maho search

Search emails using SQLite FTS5 full-text search across your local database.

Terminal window
maho search <query> [flags]

| Argument | Type | Description | |----------|------|-------------| | query | string | Search query (FTS5 syntax) |

| Flag | Type | Default | Description | |------|------|---------|-------------| | --account | string | — | Filter by account ID | | --folder | string | — | Filter by folder ID | | --limit | i64 | 20 | Maximum number of results | | --json | — | — | Output as JSON |

Terminal window
# Search all emails
maho search "project update"
# Search within a specific account and folder
maho search "invoice" --account acc1 --folder fold1
# Search and pipe to AI
maho search "meeting notes" --json | llm 'summarize these meetings'