Skip to content

quox mail

Documented Checked against the CLI's current help and source. Not run end to end. Last checked on quoxcli 0.6.1, 2026-11-10.

All commands

InboxQ: connected mail accounts, triaged messages, zones, sync, reports, watches, proposals

CommandWhat it does
quox mail accountsList connected mail accounts
quox mail connect [options]Connect a mailbox. Reuse a stored credential (--credential), or create one inline from IMAP settings (--imap-host with --password-env, or --provider gmail|icloud|outlook to pre-fill host/port). Creating a credential needs a human/admin profile, e.g. quox -p moo mail connect …
quox mail import [options] <csvFile>Batch-import mailboxes from a CSV. Header columns (case-insensitive): email (required), imap_host (required), imap_port, smtp_host, smtp_port, username, password_env OR password, label, name, folders (semicolon-separated). One credential + account is created per row. Needs a SECRETS_WRITE profile, e.g. quox -p moo mail import boxes.csv. A file with a password column is a secret: chmod 600 it.
quox mail disconnect <accountId>Disconnect a mail account
quox mail sync [options] <accountId>Sync a mail account now (fetch new messages, run triage). Waits for the result and shows the real cause if the mailbox cannot be reached (TLS, login, network).
quox mail sync-status <accountId>Show whether an account is syncing, how many messages are stored, and the last connect/TLS/login error if any
quox mail accountPer-account settings for a connected mailbox
quox mail account pin [options] <accountId>Pin the TLS certificate (SHA-256 fingerprint) an account trusts, for a mail server with a self-signed or private-CA certificate. Only that exact certificate is accepted; anything else still fails. Org admin only. Get the fingerprint with: openssl s_client -connect <host>:<port> </dev/null | openssl x509 -noout -fingerprint -sha256
quox mail list [options]List triaged messages
quox mail zones [options]Show zone counts (focus, fyi, auto, screened)
quox mail report [options] <accountId>Show the latest triage report, or generate a fresh one
quox mail watchManage standing watches (label + match rules)
quox mail watch list [options]List watches
quox mail watch add [options]Add a watch (awaited-mail alert). Give --match, or at least one of --from/--subject/--text/--zone.
quox mail watch rm <watchId>Delete a watch
quox mail watch active [options] <watchId>Enable or disable a watch
quox mail block [options] <target>Block a sender address or @domain on one account (stored mail screened and moved to Junk). --dry-run counts matches first; --propose files an approval instead
quox mail unblock [options] <target>Lift a sender or domain block on one account (future mail is no longer screened for it). Mail already in Junk stays there; use quox mail trust <address> to move a sender’s mail back. Example: quox mail unblock @example.com --account <id> --yes
quox mail blocked [options]List the blocked senders and domains on one account
quox mail junk [options] <messageIds...>Confirm messages are junk: each sender is blocked and the messages move to the account’s Junk folder on the mail server. Example: quox mail junk <messageId> <messageId> --account <id> --yes
quox mail trust [options] <address>Trust a sender (not junk): lifts their block, restores their stored mail to its zone, and moves it out of Junk back to INBOX. Example: quox mail trust [email protected] --account <id> --yes
quox mail propose [options]Propose a change for approval (file, block, draft, rezone, folder_create). Block payload: {“scope”:“sender”|“domain”,“target”:“<address or domain>”}
quox mail proposals [options]List proposals
quox mail resolve [options] <proposalId>Approve or deny a proposal
quox mail moves [options]List recent undoable moves (most recent first)
quox mail undo <moveId>Undo a recorded move: reverse the IMAP move back to its source folder