Skip to main contentModule render
Source use std::borrow::Cow; π use std::fmt::Write; π use futures::StreamExt; π use ruma::OwnedRoomId; π use ruma::RoomId; π use ruma::UserId; π use ruma::events::TimelineEventType; π use serde::Deserialize; π use serde::Deserialize; π use tuwunel_core::Result; π use tuwunel_core::debug_warn; π use tuwunel_core::implement; π use tuwunel_core::itertools::Itertools; π use tuwunel_core::result::FlatOk; π use tuwunel_core::result::NotFound; π use tuwunel_core::utils::BoolExt; π use tuwunel_core::utils::stream::IterStream; π use tuwunel_core::utils::stream::WidebandExt; π use tuwunel_core::utils::string::plural; π use tuwunel_core::utils::string::single_line; π use tuwunel_core::utils::time::format as format_time; π use tuwunel_matrix::Event; π use tuwunel_matrix::pdu::Pdu; π use super::evaluate::Pending; π use super::evaluate::Scan; π use super::evaluate::invites; π use crate::sendmail::Address; π
- Body π
- Digest π
- What a notification email says, with every name already resolved.
- Line π
- Mail π
- Room π
- SHOWN π
- Notifications shown in one email.
- SNIPPET_CHARS π
- UNNAMED_ROOM π
- footer π
- found π
- A name readβs value, or
None when it is absent or cannot be read. - one_line π
- Remote-supplied text put on one line.
- sent_at π
- shorten π
- The body cut at
SNIPPET_CHARS characters and put on one line. - snippet π
- What a notification says in the email.
- subject π
- The emailβs subject line.
- text π
- The emailβs body.
- text_room π
- visible_name π
- Remote-supplied text put on one line, or
None when that leaves no text.