# neodesk mail-intake

Source: https://docs.neode.sk/command-line/reference/mail-intake/
Last updated: 2026-12-03

> 8 commands. Tickets by mail: the mailboxes the server reads, their test and their log.

Tickets by mail: the mailboxes the server reads, their test and their log.

`neodesk mail-intake --help` lists the same commands in the terminal. The flags every command takes are in the [command reference](https://docs.neode.sk/command-line/reference.md#flags-for-every-command).

## neodesk mail-intake create

Add a mailbox the server reads over IMAP. A mail to it opens a ticket, a reply becomes a comment.

Give the request body with -f key=value (text), -F key=json (numbers, true or false) or --data JSON (or --data @file.json). The answer to a wrong body names what is missing. Fields: name, address (the support address, where answers go), host, port (993, or 143 with starttls), security (tls or starttls), tls_verify, username, password, folder (INBOX), enabled, confirm (mail the sender the ticket's number), priority and category (what a ticket from a mail starts with). The mailbox is read from the mails that arrive after it was added; older mail opens no tickets.

```text quoted
neodesk mail-intake create [flags]
```

Needs server.config; changes something: needs a token with read and write access. Calls `POST /api/integrations/mail-intake/mailboxes`.

```bash quoted
neodesk mail-intake create -f name=Support -f address=support@example.com -f host=imap.example.com -f username=support@example.com -f password=...
```

## neodesk mail-intake delete

Delete a mailbox. Its tickets stay, but get no more mails.

```text quoted
neodesk mail-intake delete <id> [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The mailbox's ID (see mail-intake list) |

Needs server.config; changes something: needs a token with read and write access; deletes or ends something for good, so it asks first unless --yes is given. Calls `DELETE /api/integrations/mail-intake/mailboxes/{id}`.

## neodesk mail-intake list

List the mailboxes, with the password masked and how the last poll went.

```text quoted
neodesk mail-intake list [flags]
```

Needs server.config; only reads. Calls `GET /api/integrations/mail-intake/mailboxes`.

## neodesk mail-intake log

List the newest mails a mailbox read and sent: what became of each and why.

```text quoted
neodesk mail-intake log <id> [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The mailbox's ID (see mail-intake list) |

| Flag | What it is |
|---|---|
| `--limit N` | how many, at most 500 (default 100) |

Needs server.config; only reads. Calls `GET /api/integrations/mail-intake/mailboxes/{id}/log`.

## neodesk mail-intake run

Read a mailbox's new mails now instead of waiting for the next poll.

```text quoted
neodesk mail-intake run <id> [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The mailbox's ID (see mail-intake list) |

Needs server.config; changes something: needs a token with read and write access. Calls `POST /api/integrations/mail-intake/mailboxes/{id}/run`.

## neodesk mail-intake show

Show one mailbox, with the password masked.

```text quoted
neodesk mail-intake show <id> [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The mailbox's ID (see mail-intake list) |

Needs server.config; only reads. Calls `GET /api/integrations/mail-intake/mailboxes/{id}`.

## neodesk mail-intake test

Connect to a mailbox, sign in and open its folder; shows what the mail server answered.

```text quoted
neodesk mail-intake test <id> [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The mailbox's ID (see mail-intake list) |

Needs server.config; changes something: needs a token with read and write access. Calls `POST /api/integrations/mail-intake/mailboxes/{id}/test`.

## neodesk mail-intake update

Change a mailbox. Give the fields to change; a password sent as ******** stays as it is.

Give the request body with -f key=value (text), -F key=json (numbers, true or false) or --data JSON (or --data @file.json). The answer to a wrong body names what is missing. Fields: name, address (the support address, where answers go), host, port (993, or 143 with starttls), security (tls or starttls), tls_verify, username, password, folder (INBOX), enabled, confirm (mail the sender the ticket's number), priority and category (what a ticket from a mail starts with).

```text quoted
neodesk mail-intake update <id> [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The mailbox's ID (see mail-intake list) |

Needs server.config; changes something: needs a token with read and write access. Calls `PATCH /api/integrations/mail-intake/mailboxes/{id}`.

```text quoted
neodesk mail-intake update <id> -F enabled=false
```
