pub fn root_of_main(
main: &MailAddress,
envelope: &Envelope,
) -> Result<Option<Thread>>Expand description
Hand thread to holder: it becomes the thread’s to, and main cc.
launched says the mailbox is starting the holder itself.
A line that reached an agent’s main session through its own input (its terminal, or its DM in a Room: a channel’s
turn into that session) is a root of the agent (RFC 0020 decision 11, “every line is a root”): its thread, held by
main, with its sender, opened when main first acts on it. None when main is no agent’s main session or the
line is main’s own.