pidge_gmail/lib.rs
1//! Gmail and Google Calendar behind pidge's provider seam
2//! ([`pidge_core::provider::Provider`]).
3//!
4//! The mapping (design ยง13): the `INBOX` label is the inbox, archiving
5//! removes it, deleting trashes; user labels are categories (and the
6//! targets of folder moves); `CATEGORY_*` tabs are bulk hints; `STARRED` is
7//! the flag; `history.list` is the delta; drafts are raw RFC 5322 messages;
8//! the calendar is the user's `primary` Google calendar, recurring events
9//! expanded, with `sendUpdates=all` on changes.
10//!
11//! - [`auth`]: Google sign-in (loopback + PKCE), refresh, [`GoogleAuth`].
12//! - [`GmailProvider`]: the [`pidge_core::provider::Provider`] implementation.
13
14pub mod auth;
15mod calendar;
16mod http;
17mod mime;
18mod model;
19mod provider;
20mod query;
21
22#[cfg(test)]
23mod test_support;
24#[cfg(test)]
25mod tests;
26
27pub use auth::{GoogleAuth, GoogleOAuthConfig};
28pub use provider::{CALENDAR_BASE, GMAIL_BASE, GmailProvider};