Gmail Tool
An external tool that directly operates on Gmail emails using OAuth2.
How to Invoke
Bash: Run with animaworks-tool gmail <サブコマンド> [引数]
Available Actions
unread — List unread emails
animaworks-tool gmail unread [-n 20]
read_body — Read email body
animaworks-tool gmail read MESSAGE_ID
draft — Create draft
animaworks-tool gmail draft --to ADDR --subject SUBJ --body BODY [--thread-id TID]
CLI Usage
animaworks-tool gmail unread [-n 20]
animaworks-tool gmail read MESSAGE_ID
animaworks-tool gmail draft --to ADDR --subject SUBJ --body BODY [--thread-id TID]
Notes
- OAuth2 authentication flow is required on first use
- credentials.json and token.json must be placed in ~/.animaworks/