pymap.context

Contains the context variables that are made available by the IMAP server to backend implementations.

See also

contextvars

pymap.context.subsystem: ContextVar[Subsystem] = <ContextVar name='subsystem' default=<pymap.concurrent._AsyncioSubsystem object>>

The Subsystem for concurrency primitives.

pymap.context.current_command: ContextVar[Command] = <ContextVar name='current_command'>

The currently executing Command.

pymap.context.socket_info: ContextVar[SocketInfo] = <ContextVar name='socket_info'>

SocketInfo about the currently connected client.

pymap.context.language_code: ContextVar[str] = <ContextVar name='language_code'>

The language code string, e.g. en.

pymap.context.connection_exit: ContextVar[AsyncExitStack] = <ContextVar name='connection_exit'>

The active AsyncExitStack that will be exited when the connection closes.

pymap.context.cluster_metadata: ContextVar[ClusterMetadata] = <ContextVar name='cluster_metdata' default=<pymap.cluster.ClusterMetadata object>>

Manages local cluster metadata updates and access to remote status and metadata.