Skip to content

parsedmarc.mail.gmail 🔗

GmailConnection 🔗

GmailConnection(
    token_file: str,
    credentials_file: str,
    scopes: list[str],
    include_spam_trash: bool,
    reports_folder: str,
    oauth2_port: int,
)

Bases: MailboxConnection

MailboxConnection for Google accounts using the Google API.

This will support both Gmail and Google Workspace accounts.

PARAMETER DESCRIPTION
token_file

TYPE: str

credentials_file

TYPE: str

scopes

TYPE: list[str]

include_spam_trash

TYPE: bool

reports_folder

TYPE: str

oauth2_port

TYPE: int

watch 🔗

watch(check_callback, check_timeout) -> None

Checks the mailbox for new messages every n seconds