Conversations
List, search, read and file conversations.
On this page
mailset threads list
List conversations.
Flags
Only this mailbox. Left out: every mailbox you can open.
Where to look:
inbox,archived,trashorjunk.One of
inboxarchivedtrashjunkDefault
inbox.Only conversations with a starred message.
Conversations marked important, anywhere but Trash and Junk.
The Sent folder: conversations you’ve written in, wherever they are.
Conversations with this label, anywhere but Trash and Junk.
Only what you’ve snoozed.
One tab of the inbox.
One of
primaryupdatesnewsletterspromotionsHow many conversations a page holds, 1 to 100.
Default
50.The
nextof the page before, for the page after it.
Returns
With --json it prints what the API returns.
mailset threads list [--mailbox <mailbox>] [--place inbox|archived|trash|junk] [--starred] [--important] [--sent] [--label <label>] [--snoozed] [--tab primary|updates|newsletters|promotions] [--limit <n>] [--before <before>]
mailset threads list --mailbox moc.elpmaxe@ana --limit 20
mailset threads get
Read a conversation.
Flags
The conversation’s id, from
threads listorthreads search.
Returns
With --json it prints what the API returns.
mailset threads get <id>
mailset threads get t_5d2c8a1f9e3b47c6a0d1e2f3
mailset threads update
Mark, star, mark important, archive or move conversations.
Flags
The conversations’ ids, 1 to 200.
Or @<path>, to read the JSON from a file.
Mark them unread, or read.
Star them, or take the star off.
Sets the Important marker by hand, or clears it.
Move them:
inbox,archived,trashorjunk.One of
inboxarchivedtrashjunk
Returns
With --json it prints what the API returns.
mailset threads update --ids <a,b,…> [--unread] [--starred] [--important] [--place inbox|archived|trash|junk]
mailset threads update --ids t_5d2c8a1f9e3b47c6a0d1e2f3,t_b7e41c9a2f6d4083c5a9e1b2 --place archived
mailset threads markAllRead
Mark a whole list as read, not only what is loaded.
Flags
Only this mailbox. Left out: every mailbox you can open.
Where to look:
inbox,archived,trashorjunk.One of
inboxarchivedtrashjunkDefault
inbox.Only conversations with a starred message.
Conversations marked important, anywhere but Trash and Junk.
Conversations you’ve written in, wherever they are.
Conversations with this label, anywhere but Trash and Junk.
Only what you’ve snoozed.
A search’s results, with the same words as
threads search.Mailboxes to leave alone: All inboxes hides these.
Or @<path>, to read the JSON from a file.
One tab of a shared mailbox.
One of
unassignedmineOne tab of a personal inbox.
One of
primaryupdatesnewsletterspromotions
Returns
With --json it prints what the API returns.
mailset threads markAllRead [--mailbox <mailbox>] [--place inbox|archived|trash|junk] [--starred] [--important] [--sent] [--label <label>] [--snoozed] [--query <query>] [--except <a,b,…>] [--owner unassigned|mine] [--tab primary|updates|newsletters|promotions]
mailset threads markAllRead --mailbox moc.elpmaxe@ana --tab promotions
mailset threads count
Count the conversations in a whole list; a search counts up to 1,000.
Flags
Only this mailbox. Left out: every mailbox you can open.
Where to look:
inbox,archived,trashorjunk.One of
inboxarchivedtrashjunkDefault
inbox.Only conversations with a starred message.
Conversations marked important, anywhere but Trash and Junk.
Conversations you’ve written in, wherever they are.
Conversations with this label, anywhere but Trash and Junk.
Only what you’ve snoozed.
A search’s results, with the same words as
threads search.Mailboxes to leave alone: All inboxes hides these.
Or @<path>, to read the JSON from a file.
One tab of a shared mailbox.
One of
unassignedmineOne tab of a personal inbox.
One of
primaryupdatesnewsletterspromotions
Returns
With --json it prints what the API returns.
mailset threads count [--mailbox <mailbox>] [--place inbox|archived|trash|junk] [--starred] [--important] [--sent] [--label <label>] [--snoozed] [--query <query>] [--except <a,b,…>] [--owner unassigned|mine] [--tab primary|updates|newsletters|promotions]
mailset threads count --mailbox moc.elpmaxe@ana --tab primary
mailset threads updateAll
Archive, move, mark, star or label a whole list, not only what is loaded.
Flags
What happens to each one: the fields of
threads updateandthreads label.Or @<path>, to read the JSON from a file.
Only this mailbox. Left out: every mailbox you can open.
Where to look:
inbox,archived,trashorjunk.One of
inboxarchivedtrashjunkDefault
inbox.Only conversations with a starred message.
Conversations marked important, anywhere but Trash and Junk.
Conversations you’ve written in, wherever they are.
Conversations with this label, anywhere but Trash and Junk.
Only what you’ve snoozed.
A search’s results, with the same words as
threads search.Mailboxes to leave alone: All inboxes hides these.
Or @<path>, to read the JSON from a file.
One tab of a shared mailbox.
One of
unassignedmineOne tab of a personal inbox.
One of
primaryupdatesnewsletterspromotionsWhere the last call stopped: its
next.
Returns
With --json it prints what the API returns.
mailset threads updateAll --change <json> [--mailbox <mailbox>] [--place inbox|archived|trash|junk] [--starred] [--important] [--sent] [--label <label>] [--snoozed] [--query <query>] [--except <a,b,…>] [--owner unassigned|mine] [--tab primary|updates|newsletters|promotions] [--after <after>]
mailset threads updateAll --label Finance --change '{"place":"archived"}'
mailset threads search
Search mail, with from:, to:, subject:, has:attachment, larger:, smaller:, before:, after:, is:important, brackets, OR, and -word.
Flags
What to find: words, and operators such as
from:,to:,subject:,has:attachment,larger:,before:,after:,is:important,ORand-word. Up to 500 characters.How many conversations a page holds, 1 to 100.
Default
50.The
nextof the page before, for the page after it.The last word is still being typed: a bare word of two letters or more matches the start of a word.
Returns
With --json it prints what the API returns.
mailset threads search <query> [--limit <n>] [--before <before>] [--prefix]
mailset threads search "from:stripe.com has:attachment" --limit 20
mailset threads label
Put labels on conversations, or take them off.
Flags
The conversations’ ids, 1 to 200.
Or @<path>, to read the JSON from a file.
Labels to put on them, by name.
Or @<path>, to read the JSON from a file.
Labels to take off them, by name.
Or @<path>, to read the JSON from a file.
Returns
With --json it prints what the API returns.
mailset threads label --ids <a,b,…> [--add <a,b,…>] [--remove <a,b,…>]
mailset threads label --ids t_5d2c8a1f9e3b47c6a0d1e2f3,t_b7e41c9a2f6d4083c5a9e1b2 --add Finance
mailset threads assign
Give a conversation in a shared mailbox an owner.
Flags
The conversation’s id.
Someone in the mailbox, or
nobody.
Returns
With --json it prints what the API returns.
mailset threads assign <id> --assignee <assignee>
mailset threads assign t_5d2c8a1f9e3b47c6a0d1e2f3 --assignee moc.elpmaxe@neb
mailset threads snooze
Hide conversations until a time.
Flags
The conversations’ ids, 1 to 200.
Or @<path>, to read the JSON from a file.
When they come back: ms since the epoch, or an ISO date and time with its offset (
2026-12-07T09:00:00Z).
Returns
With --json it prints what the API returns.
mailset threads snooze --ids <a,b,…> --until <until>
mailset threads snooze --ids t_5d2c8a1f9e3b47c6a0d1e2f3 --until 2026-12-07T09:00:00Z
mailset threads unsnooze
Bring snoozed conversations back now.
Flags
The conversations’ ids, 1 to 200.
Or @<path>, to read the JSON from a file.
Returns
With --json it prints what the API returns.
mailset threads unsnooze --ids <a,b,…>
mailset threads unsnooze --ids t_5d2c8a1f9e3b47c6a0d1e2f3
mailset threads classify
Move conversations to a tab, and keep them there.
Flags
The conversations’ ids, 1 to 200.
Or @<path>, to read the JSON from a file.
The tab they go to.
One of
primaryupdatesnewsletterspromotions
Returns
With --json it prints what the API returns.
mailset threads classify --ids <a,b,…> --tab primary|updates|newsletters|promotions
mailset threads classify --ids t_5d2c8a1f9e3b47c6a0d1e2f3,t_b7e41c9a2f6d4083c5a9e1b2 --tab newsletters