Read and Search Mail
Use the CLI for fast recent-message checks, scripts, and lightweight replies. Use Mail Desk when you want to inspect the full message or organize state visually.
Confirm the Selected Inbox
Section titled “Confirm the Selected Inbox”dispatch inbox showIf the wrong inbox is selected:
dispatch inbox lsdispatch inbox use <inbox_id>List Recent Messages
Section titled “List Recent Messages”dispatch mail lsIncrease the page size:
dispatch mail ls --limit 50Check spam or all folders:
dispatch mail ls --folder spamdispatch mail ls --folder allWatch for New Mail
Section titled “Watch for New Mail”dispatch mail tailTune polling if you are waiting in a slower flow:
dispatch mail tail --poll-seconds 10 --limit 50Use JSON for Automation
Section titled “Use JSON for Automation”dispatch --format json mail ls --limit 20JSON output includes message ids, sender, subject, timestamps, and pagination cursor data where available.
Open and Inspect Messages
Section titled “Open and Inspect Messages”The CLI is optimized for listing and extraction. For full message reading, message state, and replies, open Mail Desk in the web app after the inbox is claimed.
Recommended loop:
dispatch mail tailwhile waiting.dispatch mail codeordispatch mail linkwhen the message arrives.dispatch mail reply latest --text "Thanks, got it."for a quick reply, or open Mail Desk if you need the full body.
Common Gotchas
Section titled “Common Gotchas”dispatch mailcommands use the selected inbox.- Listing recent messages is not the same as server-side full-text search.
- Use
--folder spamwhen a sender has poor authentication. - If the CLI says credentials are missing, run
dispatch status. Recreate an inbox withdispatch inbox create, claim it withdispatch inbox claim --open, or reconnect with a workspace/inbox key if you are using keys directly.