Every command, grouped by what lets it run: macOS Automation consent alone, or that plus one of two switches in Settings. Each page lists its flags, exit codes and examples.
Works with Automation consent
No switch. macOS Automation consent is the only gate.
Opens things in Briskmail's window: a conversation, a search, a folder, a prefilled compose or reply window. With reply --send, the separate auto-send switch and Touch ID grant apply. These commands never print mail contents.
briskmail openBring Briskmail's window forward on a conversation, a search or a folder.briskmail draftOpen a compose window with the fields filled in. Saves nothing and cannot send.briskmail replyOpen a reply window, or use --send for guarded auto-send.briskmail checkCheck every signed-in account for new mail now, like Mailbox ▸ Check for New Mail.briskmail reportSave a local problem report and print its folder path. Nothing is sent.
Read and organize
Switch: Let apps read and organize my mail, in Settings ▸ Advanced ▸ Command-line access. Off until you turn it on.
Lists, searches and reads your mail, and does the things you can undo: label, mark read or unread, star, archive, snooze, and save a draft without opening a window.
briskmail triagePropose one of five Triage groups for a cached Inbox message.briskmail listList the messages in a folder or label: ids, senders, subjects, dates, labels and unread state.briskmail searchSearch mail and get back metadata rows, never bodies.briskmail unreadCount unread Inbox messages.briskmail labelsThe account's folders and labels.briskmail accountsThe accounts signed in to Briskmail, by the names you see, with the ids --account takes.briskmail readRead one message’s plain-text body.briskmail threadRead a conversation’s plain-text bodies.briskmail attachmentsList attachment names, types and sizes, or save one to an exact path.briskmail labelAdd a label to a message, as the app's Label menu does.briskmail unlabelRemove a label from a message.briskmail mark-readMark a message read.briskmail mark-unreadMark a message unread.briskmail starStar a message.briskmail unstarRemove a message's star.briskmail archiveArchive a message the same way the app's Archive button does, so Undo works.briskmail snoozeSnooze a message so it comes back later, as the app's Snooze does.briskmail save-draftSave a draft in Gmail without opening a window, new or as a reply. It never sends.briskmail composeSee and finish the compose windows and inline replies open in Briskmail, including text not yet saved to Gmail. It never sends.
Send without asking
Switch: Let apps send without asking, in Settings ▸ Advanced ▸ Command-line access. Off until you turn it on.
Lets an agent send mail while you are away. Turning it on takes Touch ID or your login password.
briskmail sendSend without you, to known recipients only, through Undo Send. Anything else becomes a draft.
Global flags
--account ID- An account id, as briskmail accounts prints it. Leave it out to use the first account. Accepted before or after the command.
--dev- Send the command to the dev build (com.valleyedgeconsulting.edgemail.dev) instead of Briskmail. Only useful when working on Briskmail itself.
Exit codes
The same for every built command. A command that acts prints ok, a command that reads prints what you asked for, and an error goes to stderr. A command behind a switch that is off also exits 2, and the message names the switch.
| Code | Meaning |
|---|---|
| 0 | The check started. Prints ok. |
| 2 | Not allowed. macOS refused Automation for the app you ran it from (-1743). |
| 3 | Briskmail reported an error, printed on stderr. |
| 64 | Bad usage. |
Never available
No command does these, and no switch turns them on:
- Permanently delete mail
- Create or change filters or forwarding rules
- Change account or security settings
- Unsubscribe