Conversations

Conversations

List, search, read and file conversations.

On this page
  1. threads list
  2. threads get
  3. threads update
  4. threads markAllRead
  5. threads count
  6. threads updateAll
  7. threads search
  8. threads label
  9. threads assign
  10. threads snooze
  11. threads unsnooze
  12. threads classify

mailset threads list

List conversations.

Flags

  • --mailbox<mailbox>optional

    Only this mailbox. Left out: every mailbox you can open.

  • --placeenumoptional

    Where to look: inbox, archived, trash or junk.

    One ofinboxarchivedtrashjunk

    Default inbox.

  • --starredflagoptional

    Only conversations with a starred message.

  • --importantflagoptional

    Conversations marked important, anywhere but Trash and Junk.

  • --sentflagoptional

    The Sent folder: conversations you’ve written in, wherever they are.

  • --label<label>optional

    Conversations with this label, anywhere but Trash and Junk.

  • --snoozedflagoptional

    Only what you’ve snoozed.

  • --tabenumoptional

    One tab of the inbox.

    One ofprimaryupdatesnewsletterspromotions

  • --limit<n>optional

    How many conversations a page holds, 1 to 100.

    Default 50.

  • --before<before>optional

    The next of the page before, for the page after it.

Returns

With --json it prints what the API returns.

In the API: POST /v1/threads.list

Usage
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>]
Example
mailset threads list --mailbox moc.elpmaxe@ana --limit 20

mailset threads get

Read a conversation.

Flags

  • <id>argumentrequired

    The conversation’s id, from threads list or threads search.

Returns

With --json it prints what the API returns.

In the API: POST /v1/threads.get

Usage
mailset threads get <id>
Example
mailset threads get t_5d2c8a1f9e3b47c6a0d1e2f3

mailset threads update

Mark, star, mark important, archive or move conversations.

Flags

  • --ids<a,b,…>required

    The conversations’ ids, 1 to 200.

    Or @<path>, to read the JSON from a file.

  • --unreadflagoptional

    Mark them unread, or read.

  • --starredflagoptional

    Star them, or take the star off.

  • --importantflagoptional

    Sets the Important marker by hand, or clears it.

  • --placeenumoptional

    Move them: inbox, archived, trash or junk.

    One ofinboxarchivedtrashjunk

Returns

With --json it prints what the API returns.

In the API: POST /v1/threads.update

Usage
mailset threads update --ids <a,b,…> [--unread] [--starred] [--important] [--place inbox|archived|trash|junk]
Example
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

  • --mailbox<mailbox>optional

    Only this mailbox. Left out: every mailbox you can open.

  • --placeenumoptional

    Where to look: inbox, archived, trash or junk.

    One ofinboxarchivedtrashjunk

    Default inbox.

  • --starredflagoptional

    Only conversations with a starred message.

  • --importantflagoptional

    Conversations marked important, anywhere but Trash and Junk.

  • --sentflagoptional

    Conversations you’ve written in, wherever they are.

  • --label<label>optional

    Conversations with this label, anywhere but Trash and Junk.

  • --snoozedflagoptional

    Only what you’ve snoozed.

  • --query<query>optional

    A search’s results, with the same words as threads search.

  • --except<a,b,…>optional

    Mailboxes to leave alone: All inboxes hides these.

    Or @<path>, to read the JSON from a file.

  • --ownerenumoptional

    One tab of a shared mailbox.

    One ofunassignedmine

  • --tabenumoptional

    One tab of a personal inbox.

    One ofprimaryupdatesnewsletterspromotions

Returns

With --json it prints what the API returns.

In the API: POST /v1/threads.markAllRead

Usage
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]
Example
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

  • --mailbox<mailbox>optional

    Only this mailbox. Left out: every mailbox you can open.

  • --placeenumoptional

    Where to look: inbox, archived, trash or junk.

    One ofinboxarchivedtrashjunk

    Default inbox.

  • --starredflagoptional

    Only conversations with a starred message.

  • --importantflagoptional

    Conversations marked important, anywhere but Trash and Junk.

  • --sentflagoptional

    Conversations you’ve written in, wherever they are.

  • --label<label>optional

    Conversations with this label, anywhere but Trash and Junk.

  • --snoozedflagoptional

    Only what you’ve snoozed.

  • --query<query>optional

    A search’s results, with the same words as threads search.

  • --except<a,b,…>optional

    Mailboxes to leave alone: All inboxes hides these.

    Or @<path>, to read the JSON from a file.

  • --ownerenumoptional

    One tab of a shared mailbox.

    One ofunassignedmine

  • --tabenumoptional

    One tab of a personal inbox.

    One ofprimaryupdatesnewsletterspromotions

Returns

With --json it prints what the API returns.

In the API: POST /v1/threads.count

Usage
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]
Example
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

  • --change<json>required

    What happens to each one: the fields of threads update and threads label.

    Or @<path>, to read the JSON from a file.

  • --mailbox<mailbox>optional

    Only this mailbox. Left out: every mailbox you can open.

  • --placeenumoptional

    Where to look: inbox, archived, trash or junk.

    One ofinboxarchivedtrashjunk

    Default inbox.

  • --starredflagoptional

    Only conversations with a starred message.

  • --importantflagoptional

    Conversations marked important, anywhere but Trash and Junk.

  • --sentflagoptional

    Conversations you’ve written in, wherever they are.

  • --label<label>optional

    Conversations with this label, anywhere but Trash and Junk.

  • --snoozedflagoptional

    Only what you’ve snoozed.

  • --query<query>optional

    A search’s results, with the same words as threads search.

  • --except<a,b,…>optional

    Mailboxes to leave alone: All inboxes hides these.

    Or @<path>, to read the JSON from a file.

  • --ownerenumoptional

    One tab of a shared mailbox.

    One ofunassignedmine

  • --tabenumoptional

    One tab of a personal inbox.

    One ofprimaryupdatesnewsletterspromotions

  • --after<after>optional

    Where the last call stopped: its next.

Returns

With --json it prints what the API returns.

In the API: POST /v1/threads.updateAll

Usage
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>]
Example
mailset threads updateAll --label Finance --change '{"place":"archived"}'

mailset threads label

Put labels on conversations, or take them off.

Flags

  • --ids<a,b,…>required

    The conversations’ ids, 1 to 200.

    Or @<path>, to read the JSON from a file.

  • --add<a,b,…>optional

    Labels to put on them, by name.

    Or @<path>, to read the JSON from a file.

  • --remove<a,b,…>optional

    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.

In the API: POST /v1/threads.label

Usage
mailset threads label --ids <a,b,…> [--add <a,b,…>] [--remove <a,b,…>]
Example
mailset threads label --ids t_5d2c8a1f9e3b47c6a0d1e2f3,t_b7e41c9a2f6d4083c5a9e1b2 --add Finance

mailset threads assign

Give a conversation in a shared mailbox an owner.

Flags

  • <id>argumentrequired

    The conversation’s id.

  • --assignee<assignee>required

    Someone in the mailbox, or nobody.

Returns

With --json it prints what the API returns.

In the API: POST /v1/threads.assign

Usage
mailset threads assign <id> --assignee <assignee>
Example
mailset threads assign t_5d2c8a1f9e3b47c6a0d1e2f3 --assignee moc.elpmaxe@neb

mailset threads snooze

Hide conversations until a time.

Flags

  • --ids<a,b,…>required

    The conversations’ ids, 1 to 200.

    Or @<path>, to read the JSON from a file.

  • --until<until>required

    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.

In the API: POST /v1/threads.snooze

Usage
mailset threads snooze --ids <a,b,…> --until <until>
Example
mailset threads snooze --ids t_5d2c8a1f9e3b47c6a0d1e2f3 --until 2026-12-07T09:00:00Z

mailset threads unsnooze

Bring snoozed conversations back now.

Flags

  • --ids<a,b,…>required

    The conversations’ ids, 1 to 200.

    Or @<path>, to read the JSON from a file.

Returns

With --json it prints what the API returns.

In the API: POST /v1/threads.unsnooze

Usage
mailset threads unsnooze --ids <a,b,…>
Example
mailset threads unsnooze --ids t_5d2c8a1f9e3b47c6a0d1e2f3

mailset threads classify

Move conversations to a tab, and keep them there.

Flags

  • --ids<a,b,…>required

    The conversations’ ids, 1 to 200.

    Or @<path>, to read the JSON from a file.

  • --tabenumrequired

    The tab they go to.

    One ofprimaryupdatesnewsletterspromotions

Returns

With --json it prints what the API returns.

In the API: POST /v1/threads.classify

Usage
mailset threads classify --ids <a,b,…> --tab primary|updates|newsletters|promotions
Example
mailset threads classify --ids t_5d2c8a1f9e3b47c6a0d1e2f3,t_b7e41c9a2f6d4083c5a9e1b2 --tab newsletters