parsedmarc.mail.imap
🔗
IMAPConnection
🔗
IMAPConnection(
host: str | None = None,
user: str | None = None,
password: str | None = None,
port: int | None = None,
ssl: bool = True,
verify: bool = True,
timeout: int = 30,
max_retries: int = 4,
)
Bases: MailboxConnection
MailboxConnection for connecting to a mailbox via IMAP.
PARAMETER | DESCRIPTION |
---|---|
host |
Host to connect to
TYPE:
|
user |
TYPE:
|
password |
TYPE:
|
port |
Port to connect to
TYPE:
|
ssl |
Use SSL/TLS
TYPE:
|
verify |
Verify the SSL/TLS certification
TYPE:
|
timeout |
TYPE:
|
max_retries |
TYPE:
|
watch
🔗
Use an IDLE IMAP connection to parse incoming emails, and pass the results to a callback function