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:
|
credentials_file |
TYPE:
|
scopes |
|
include_spam_trash |
TYPE:
|
reports_folder |
TYPE:
|
oauth2_port |
TYPE:
|
watch
🔗
Checks the mailbox for new messages every n seconds