formats for storing text for individual messages.
a plaintext format for message histories. each message starts with a timestamp and sender, followed by an empty line and the message body. messages are ordered newest first and separated by "---".
example:
2026-09-21 15:07:00 sender Second message. --- 2026-09-21 15:06:00 sender First message.
the header format is "YYYY-MM-DD HH:MM:SS Sender". the message body is preserved as-is and may contain arbitrary text and empty lines.
a plaintext format for drafting replies to messages. each entry starts with a timestamp and sender, followed by an empty line and then text content.
the content may contain the sender message and draft text. including the sender message is optional. both sender message and draft text may span multiple lines.
lines in draft text starting with "-- " are editorial comments.
entry example:
2026-09-21 15:07:00 sender > sender message line > sender message line draft text line -- single line editorial comment draft text line
the header format is "YYYY-MM-DD HH:MM:SS Sender". entries are ordered newest first and separated by "---".