Skip to content

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

NameTypeRequiredDefaultDescription
--inboxstringyes—target inbox id (ibx_…)
--client-idstringyes—OAuth client id (or GMAIL_CLIENT_ID)
--client-secretstringyes—OAuth client secret (or GMAIL_CLIENT_SECRET)
--refresh-tokenstringyes—OAuth refresh token (or GMAIL_REFRESH_TOKEN)
--querystringyes—Gmail search query to scope the import (default: all mail)
--limitstringyes—import at most N messages