Search workflow
Core idea
mxr treats search as navigation, not a bolt-on filter. Search results drive the TUI mail list, saved searches, exports, and batch mutations.
Common patterns
mxr search "from:alice unread"mxr search "label:work has:attachment"mxr search "subject:\"quarterly review\" after:2026-01-01"mxr search "unsubscribe"mxr search "label:inbox" --format idsDedicated search page
The TUI has both:
- Inline search with
/ - A dedicated Search page for a broader search-and-preview workflow
The dedicated page gives you:
- Query input
- Result list
- Preview pane
- Normal open flow into mailbox/thread interaction
Useful combinations
- Use
mxr search ... --format ids | xargs ...for shell pipelines. - Save high-value searches in the TUI sidebar for recurring workflows.
- Use
mxr count QUERYfor quick status-bar or script integration. - Use
mxr export --search QUERY --format mboxto archive slices of mail.
TUI flow
- Press
/to start a search. - Refine with fields such as
from:,to:,subject:,label:,before:,after:. - Use
nandNto move between matches. - Open results with
Enteroro. - Use bulk select to mutate or export the result set.
Saved searches
Saved searches are not a secondary convenience. They are persistent inbox lenses and appear in:
- The sidebar
- Command palette
- CLI via
mxr saved
Common flow:
mxr saved add urgent "label:inbox unread from:boss@example.com"mxr saved listmxr saved run urgent