Skip to content

Types

email_profile.core.types.IMAPHost dataclass

The IMAP host + port + ssl flag for an account.

Source code in email_profile/core/types.py
 8
 9
10
11
12
13
14
@dataclass(frozen=True)
class IMAPHost:
    """The IMAP host + port + ssl flag for an account."""

    host: str
    port: int = 993
    ssl: bool = True

host instance-attribute

port = 993 class-attribute instance-attribute

ssl = True class-attribute instance-attribute

__init__(host, port=993, ssl=True)

email_profile.core.types.SMTPHost dataclass

The SMTP host + port + SSL/STARTTLS mode for outgoing mail.

Source code in email_profile/core/types.py
17
18
19
20
21
22
23
24
@dataclass(frozen=True)
class SMTPHost:
    """The SMTP host + port + SSL/STARTTLS mode for outgoing mail."""

    host: str
    port: int = 465
    ssl: bool = True
    starttls: bool = False

host instance-attribute

port = 465 class-attribute instance-attribute

ssl = True class-attribute instance-attribute

starttls = False class-attribute instance-attribute

__init__(host, port=465, ssl=True, starttls=False)

email_profile.core.types.AppendedUID dataclass

Result of a successful IMAP APPEND when the server supports UIDPLUS.

Source code in email_profile/core/types.py
27
28
29
30
31
32
@dataclass(frozen=True)
class AppendedUID:
    """Result of a successful IMAP APPEND when the server supports UIDPLUS."""

    uidvalidity: int
    uid: int

uid instance-attribute

uidvalidity instance-attribute

__init__(uidvalidity, uid)