Skip to main content

Module render

Module render 

Source

Re-exportsΒ§

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; πŸ”’

StructsΒ§

Body πŸ”’
Digest πŸ”’
What a notification email says, with every name already resolved.
Line πŸ”’
Mail πŸ”’
Room πŸ”’

ConstantsΒ§

SHOWN πŸ”’
Notifications shown in one email.
SNIPPET_CHARS πŸ”’
UNNAMED_ROOM πŸ”’

FunctionsΒ§

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.