CLI command
tinbox import gmail
Import a Gmail mailbox via the Gmail API (format=RAW), using your OWN local OAuth
Usage
sh
tinbox import gmail --inbox <inbox> --client-id <client-id> --client-secret <client-secret> --refresh-token <refresh-token> --query <query> --limit <limit>Flags
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--inbox | string | yes | — | target inbox id (ibx_…) |
--client-id | string | yes | — | OAuth client id (or GMAIL_CLIENT_ID) |
--client-secret | string | yes | — | OAuth client secret (or GMAIL_CLIENT_SECRET) |
--refresh-token | string | yes | — | OAuth refresh token (or GMAIL_REFRESH_TOKEN) |
--query | string | yes | — | Gmail search query to scope the import (default: all mail) |
--limit | string | yes | — | import at most N messages |