Skip to main content

Module gmail

Module gmail 

Source
Expand description

Gmail API integration: typed HTTP client and OAuth2 authentication.

Provides a thin reqwest wrapper around the Gmail v1 REST API, authenticated via OAuth2 authorization-code + PKCE (see ADR-0063). Phase 1 covers the client, authentication, and the message/thread/label API façades, plus the CLI and MCP surfaces built on them. history_api.rs (the historyId watermark) and profile_api.rs (users.getProfile) back Phase 2’s gmail sync (see ADR-0064).

Modules§

account
Named Gmail account resolution (issue #1500, ADR-0066).
attachments
Real MIME/multipart attachment extraction for gmail sync --extract-attachments.
auth
Gmail OAuth2 authentication: authorization-code + PKCE login, credential storage, and in-memory access-token refresh.
client
Gmail REST API client.
error
Error types for Gmail operations.
history_api
Gmail History API wrapper.
import
Imports a Google Cloud OAuth2 client id/secret from client_secret.json.
labels_api
Gmail Labels API wrapper.
messages_api
Gmail Messages API wrapper.
profile_api
Gmail Profile API wrapper.
raw_message
Decoding and light header extraction for format=raw Gmail messages.
render
Renders a raw MIME message (an archived .eml, or any RFC 5322 message) as human-readable Markdown, backing gmail render and gmail read -o markdown (#1513).
threads_api
Gmail Threads API wrapper.
types
Wire types for the Gmail v1 REST API.