Skip to content

common_reports.contracts.emails.references

Immutable identities for mailboxes and records inside them.

Classes

AttachmentRef

An exact provider attachment nested under its parent message.

__init__

def __init__(message: MessageRef, provider_id: str, filename: str = '', mime_type: str = 'application/octet-stream', size: int | None = None) -> None

Fields and properties declared here; inherited members belong to the bases above.

filename

filename: str = ''

message

message: MessageRef

mime_type

mime_type: str = 'application/octet-stream'

provider_id

provider_id: str

size

size: int | None = None

MailboxRef

The exact provider mailbox against which an operation runs.

__init__

def __init__(provider: str, address: str, user_id: str = 'me') -> None

Fields and properties declared here; inherited members belong to the bases above.

address

address: str

provider

provider: str

user_id

user_id: str = 'me'

MessageRef

An exact provider message, distinct from its RFC Message-ID header.

__init__

def __init__(mailbox: MailboxRef, provider_id: str, thread_id: str | None = None, rfc_message_id: str | None = None) -> None

Fields and properties declared here; inherited members belong to the bases above.

mailbox

mailbox: MailboxRef

provider_id

provider_id: str

rfc_message_id

rfc_message_id: str | None = None

thread

Read-only property.

thread: ThreadRef | None

Project the known thread identity, when the provider supplied one.

thread_id

thread_id: str | None = None

ThreadRef

An exact provider thread in a mailbox.

__init__

def __init__(mailbox: MailboxRef, provider_id: str) -> None

Fields and properties declared here; inherited members belong to the bases above.

mailbox

mailbox: MailboxRef

provider_id

provider_id: str