Skip to main content

Module send_as_api

Module send_as_api 

Source
Expand description

Gmail send-as settings wrapper.

users.settings.sendAs.list returns the account’s primary address and every send-as alias in one unpaginated call (1 quota unit, allowed by gmail.readonly). gmail draft create --reply-all uses it to leave the account’s own addresses out of a reply (#1954), and gmail draft create/update --from to check that a From is one Gmail will send as (resolve_from, #1956). Read-only: nothing here creates, edits or verifies an alias.

Structs§

SendAs
One address the account can send as.
SendAsApi
Send-as settings API façade.

Functions§

resolve_from
Checks from against the account’s send-as addresses and returns the mailbox to write as the draft’s From, or None to leave From to Gmail.