# Tab rules

Always file a sender or a domain in one inbox tab.

## mailset tabrules list

List the senders and domains you always file in a tab.

```bash
mailset tabrules list
```

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

Example:

```bash
mailset tabrules list
```

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

## mailset tabrules add

Always file a sender or domain in a tab.

```bash
mailset tabrules add <match> --tab primary|updates|newsletters|promotions
```

### Flags

- `<match>` (argument, required): A sender’s address, or a domain.
- `--tab` (enum, required): The tab their mail goes to. One of `primary`, `updates`, `newsletters`, `promotions`.

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

Example:

```bash
mailset tabrules add stripe.com --tab updates
```

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

## mailset tabrules remove

Stop always filing a sender or domain in a tab.

```bash
mailset tabrules remove <match>
```

### Flags

- `<match>` (argument, required): The sender’s address or domain, as it was added.

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

Example:

```bash
mailset tabrules remove stripe.com
```

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

---

© 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