# Conversations

List, search, read and file conversations.

## mailset threads list

List conversations.

```bash
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>]
```

### Flags

- `--mailbox` (\<mailbox\>, optional): Only this mailbox. Left out: every mailbox you can open.
- `--place` (enum, optional): Where to look: `inbox`, `archived`, `trash` or `junk`. One of `inbox`, `archived`, `trash`, `junk`. Default `inbox`.
- `--starred` (flag, optional): Only conversations with a starred message.
- `--important` (flag, optional): Conversations marked important, anywhere but Trash and Junk.
- `--sent` (flag, optional): The Sent folder: conversations you’ve written in, wherever they are.
- `--label` (\<label\>, optional): Conversations with this label, anywhere but Trash and Junk.
- `--snoozed` (flag, optional): Only what you’ve snoozed.
- `--tab` (enum, optional): One tab of the inbox. One of `primary`, `updates`, `newsletters`, `promotions`.
- `--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.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/threads#threads.list-returns).

Example:

```bash
mailset threads list --mailbox ana@example.com --limit 20
```

In the API: [POST /v1/threads.list](https://mailset.app/docs/api/threads#threads.list)

## mailset threads get

Read a conversation.

```bash
mailset threads get <id>
```

### Flags

- `<id>` (argument, required): The conversation’s id, from `threads list` or `threads search`.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/threads#threads.get-returns).

Example:

```bash
mailset threads get t_5d2c8a1f9e3b47c6a0d1e2f3
```

In the API: [POST /v1/threads.get](https://mailset.app/docs/api/threads#threads.get)

## mailset threads update

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

```bash
mailset threads update --ids <a,b,…> [--unread] [--starred] [--important] [--place inbox|archived|trash|junk]
```

### Flags

- `--ids` (\<a,b,…\>, required): The conversations’ ids, 1 to 200. Or @<path>, to read the JSON from a file.
- `--unread` (flag, optional): Mark them unread, or read.
- `--starred` (flag, optional): Star them, or take the star off.
- `--important` (flag, optional): Sets the Important marker by hand, or clears it.
- `--place` (enum, optional): Move them: `inbox`, `archived`, `trash` or `junk`. One of `inbox`, `archived`, `trash`, `junk`.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/threads#threads.update-returns).

Example:

```bash
mailset threads update --ids t_5d2c8a1f9e3b47c6a0d1e2f3,t_b7e41c9a2f6d4083c5a9e1b2 --place archived
```

In the API: [POST /v1/threads.update](https://mailset.app/docs/api/threads#threads.update)

## mailset threads markAllRead

Mark a whole list as read, not only what is loaded.

```bash
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]
```

### Flags

- `--mailbox` (\<mailbox\>, optional): Only this mailbox. Left out: every mailbox you can open.
- `--place` (enum, optional): Where to look: `inbox`, `archived`, `trash` or `junk`. One of `inbox`, `archived`, `trash`, `junk`. Default `inbox`.
- `--starred` (flag, optional): Only conversations with a starred message.
- `--important` (flag, optional): Conversations marked important, anywhere but Trash and Junk.
- `--sent` (flag, optional): Conversations you’ve written in, wherever they are.
- `--label` (\<label\>, optional): Conversations with this label, anywhere but Trash and Junk.
- `--snoozed` (flag, optional): 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.
- `--owner` (enum, optional): One tab of a shared mailbox. One of `unassigned`, `mine`.
- `--tab` (enum, optional): One tab of a personal inbox. One of `primary`, `updates`, `newsletters`, `promotions`.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/threads#threads.markAllRead-returns).

Example:

```bash
mailset threads markAllRead --mailbox ana@example.com --tab promotions
```

In the API: [POST /v1/threads.markAllRead](https://mailset.app/docs/api/threads#threads.markAllRead)

## mailset threads count

Count the conversations in a whole list; a search counts up to 1,000.

```bash
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]
```

### Flags

- `--mailbox` (\<mailbox\>, optional): Only this mailbox. Left out: every mailbox you can open.
- `--place` (enum, optional): Where to look: `inbox`, `archived`, `trash` or `junk`. One of `inbox`, `archived`, `trash`, `junk`. Default `inbox`.
- `--starred` (flag, optional): Only conversations with a starred message.
- `--important` (flag, optional): Conversations marked important, anywhere but Trash and Junk.
- `--sent` (flag, optional): Conversations you’ve written in, wherever they are.
- `--label` (\<label\>, optional): Conversations with this label, anywhere but Trash and Junk.
- `--snoozed` (flag, optional): 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.
- `--owner` (enum, optional): One tab of a shared mailbox. One of `unassigned`, `mine`.
- `--tab` (enum, optional): One tab of a personal inbox. One of `primary`, `updates`, `newsletters`, `promotions`.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/threads#threads.count-returns).

Example:

```bash
mailset threads count --mailbox ana@example.com --tab primary
```

In the API: [POST /v1/threads.count](https://mailset.app/docs/api/threads#threads.count)

## mailset threads updateAll

Archive, move, mark, star or label a whole list, not only what is loaded.

```bash
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>]
```

### 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.
- `--place` (enum, optional): Where to look: `inbox`, `archived`, `trash` or `junk`. One of `inbox`, `archived`, `trash`, `junk`. Default `inbox`.
- `--starred` (flag, optional): Only conversations with a starred message.
- `--important` (flag, optional): Conversations marked important, anywhere but Trash and Junk.
- `--sent` (flag, optional): Conversations you’ve written in, wherever they are.
- `--label` (\<label\>, optional): Conversations with this label, anywhere but Trash and Junk.
- `--snoozed` (flag, optional): 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.
- `--owner` (enum, optional): One tab of a shared mailbox. One of `unassigned`, `mine`.
- `--tab` (enum, optional): One tab of a personal inbox. One of `primary`, `updates`, `newsletters`, `promotions`.
- `--after` (\<after\>, optional): Where the last call stopped: its `next`.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/threads#threads.updateAll-returns).

Example:

```bash
mailset threads updateAll --label Finance --change '{"place":"archived"}'
```

In the API: [POST /v1/threads.updateAll](https://mailset.app/docs/api/threads#threads.updateAll)

## mailset threads search

Search mail, with from:, to:, subject:, has:attachment, larger:, smaller:, before:, after:, is:important, brackets, OR, and -word.

```bash
mailset threads search <query> [--limit <n>] [--before <before>] [--prefix]
```

### Flags

- `<query>` (argument, required): What to find: words, and operators such as `from:`, `to:`, `subject:`, `has:attachment`, `larger:`, `before:`, `after:`, `is:important`, `OR` and `-word`. Up to 500 characters.
- `--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.
- `--prefix` (flag, optional): The last word is still being typed: a bare word of two letters or more matches the start of a word.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/threads#threads.search-returns).

Example:

```bash
mailset threads search "from:stripe.com has:attachment" --limit 20
```

In the API: [POST /v1/threads.search](https://mailset.app/docs/api/threads#threads.search)

## mailset threads label

Put labels on conversations, or take them off.

```bash
mailset threads label --ids <a,b,…> [--add <a,b,…>] [--remove <a,b,…>]
```

### 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.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/threads#threads.label-returns).

Example:

```bash
mailset threads label --ids t_5d2c8a1f9e3b47c6a0d1e2f3,t_b7e41c9a2f6d4083c5a9e1b2 --add Finance
```

In the API: [POST /v1/threads.label](https://mailset.app/docs/api/threads#threads.label)

## mailset threads assign

Give a conversation in a shared mailbox an owner.

```bash
mailset threads assign <id> --assignee <assignee>
```

### Flags

- `<id>` (argument, required): The conversation’s id.
- `--assignee` (\<assignee\>, required): Someone in the mailbox, or `nobody`.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/threads#threads.assign-returns).

Example:

```bash
mailset threads assign t_5d2c8a1f9e3b47c6a0d1e2f3 --assignee ben@example.com
```

In the API: [POST /v1/threads.assign](https://mailset.app/docs/api/threads#threads.assign)

## mailset threads snooze

Hide conversations until a time.

```bash
mailset threads snooze --ids <a,b,…> --until <until>
```

### 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`).

With `--json` it prints what [the API returns](https://mailset.app/docs/api/threads#threads.snooze-returns).

Example:

```bash
mailset threads snooze --ids t_5d2c8a1f9e3b47c6a0d1e2f3 --until 2026-12-07T09:00:00Z
```

In the API: [POST /v1/threads.snooze](https://mailset.app/docs/api/threads#threads.snooze)

## mailset threads unsnooze

Bring snoozed conversations back now.

```bash
mailset threads unsnooze --ids <a,b,…>
```

### Flags

- `--ids` (\<a,b,…\>, required): The conversations’ ids, 1 to 200. Or @<path>, to read the JSON from a file.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/threads#threads.unsnooze-returns).

Example:

```bash
mailset threads unsnooze --ids t_5d2c8a1f9e3b47c6a0d1e2f3
```

In the API: [POST /v1/threads.unsnooze](https://mailset.app/docs/api/threads#threads.unsnooze)

## mailset threads classify

Move conversations to a tab, and keep them there.

```bash
mailset threads classify --ids <a,b,…> --tab primary|updates|newsletters|promotions
```

### Flags

- `--ids` (\<a,b,…\>, required): The conversations’ ids, 1 to 200. Or @<path>, to read the JSON from a file.
- `--tab` (enum, required): The tab they go to. One of `primary`, `updates`, `newsletters`, `promotions`.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/threads#threads.classify-returns).

Example:

```bash
mailset threads classify --ids t_5d2c8a1f9e3b47c6a0d1e2f3,t_b7e41c9a2f6d4083c5a9e1b2 --tab newsletters
```

In the API: [POST /v1/threads.classify](https://mailset.app/docs/api/threads#threads.classify)

---

© 2026 Intenseloop, Inc. Mailset’s site, docs and guides are copyrighted. You may read them and use their code to build with Mailset. Don’t republish them or use them to build a copy of Mailset. Terms: https://mailset.app/terms#content