Skip to main content

Module gmail

Module gmail 

Source
Expand description

Google’s mail (Gmail, Google Workspace) signed in on Google’s page, with a key of your own: Google gives its mail’s scope, a restricted one, to no key of Sioul’s yet. Google’s page opens in the system’s browser, its answer comes back to this device (a loopback port, as for the calendars), then IMAP and SMTP are given an access token (SASL XOAUTH2, sioul-sync’s sasl.rs). The other way, an app password, is the usual mail form (backend::add_mail), with Google’s words. docs/google.md, “Mail”.

Functions§

add_google_mail 🔒
Adds an address’s Google mail, signed in on Google’s page, or signs its account in again (again: its id). Google’s page opens in the browser; the account’s server is tried with the access given before anything is kept. On a thread; the form says how it went.
has_own_key 🔒
Whether a key of your own is kept on this device for an address: the form then signs in with it, no ID or secret asked.
key 🔒
The key to sign in with: the one given, else yours kept on this device (the mail’s, else the calendars’). Sioul’s own cannot read mail: said so.