Content API¶
Gemmail message format: addresses, timestamps, and gemtext body.
GemmailMessage¶
GemmailMessage
dataclass
¶
GemmailMessage(
senders: list[MisfinAddress] = list(),
recipients: list[MisfinAddress] = list(),
timestamps: list[datetime] = list(),
body: str = "",
)
from_bytes_b
classmethod
¶
Parse a Misfin(B) gemtext message body.
B-format embeds metadata as special-prefix lines anywhere in
the body: < sender, : recipients, @ timestamp.
All < lines are collected as senders (forwarding chains);
only the first : and @ are used. Parsed metadata
lines are stripped from the returned body.