feat(mails): add Workspace mail CLI with pagination and parsed from fields
Manage the OnlyOffice Mail addon via oo mails using existing ONLYOFFICE_* creds, with automatic page fetching past the 25-message API cap and fromName/fromAddress columns. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -585,6 +585,7 @@ oo tasks files detach 208 12345
|
||||
| `companies` | `list`, `create`, `delete`, `dedupe`, `dedupe-persons` |
|
||||
| `opportunities` | `list`, `get`, `create`, `delete`, `stages`, `member-add`, `dedupe`, `dedupe-members`, `fix-titles` |
|
||||
| `crm` | `cleanup` |
|
||||
| `mails` | `accounts`, `folders`, `list`, `get`, `delete` |
|
||||
| `cases` | `list`, `create`, `delete`, `member-add` |
|
||||
| `crm-tasks` | `list`, `create`, `delete`, `categories` |
|
||||
| `applications` | `sync` |
|
||||
@@ -615,6 +616,21 @@ Run `oo --help` or `oo <subject> --help` for the full command reference.
|
||||
| `ONLYOFFICE_PROJECT_ID` | Default project id used when omitted (default `33`) |
|
||||
| `OO_URL`, `OO_USER`, `OO_PASS` | CLI-only produktor.io aliases mapped to `ONLYOFFICE_URL`, `ONLYOFFICE_USER`, `ONLYOFFICE_PASS` |
|
||||
|
||||
### Workspace mail (`oo mails`)
|
||||
|
||||
Uses the same OnlyOffice credentials as other `oo` commands. Talks to the
|
||||
built-in Mail addon (`/addons/mail`) via `/api/2.0/mail/*`:
|
||||
|
||||
```bash
|
||||
oo mails accounts
|
||||
oo mails folders
|
||||
oo mails list --folder inbox --limit 20
|
||||
oo mails get 5664
|
||||
oo mails delete 5664
|
||||
```
|
||||
|
||||
Folder names: `inbox`, `sent`, `drafts`, `trash`, `spam` (or numeric id).
|
||||
|
||||
## Examples
|
||||
|
||||
| Example | Description |
|
||||
|
||||
Reference in New Issue
Block a user