crabmail

Static HTML email archive viewer in Rust
git clone git://git.alexwennerberg.com/crabmail
Log | Files | Refs | README | LICENSE

commit 5fb5195d090af5f1ede28db9e0332fb7b997bd61
parent d857ddf4dadb2fd313d0da2bbadb5863e17cc58c
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sat, 19 Mar 2022 22:11:04 -0700

more header

Diffstat:
Msrc/templates/gmi.rs | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/templates/gmi.rs b/src/templates/gmi.rs @@ -86,6 +86,8 @@ From: {from} Date: {date} Message-Id: {msg_id} To: {to}{optional_headers} +=> mailto:{mailto} Reply +=> ../messages/{msg_path}.eml Export -------------------------------------- {body} "#, @@ -104,6 +106,8 @@ To: {to}{optional_headers} ), ("optional_headers", &optional_headers), ("from", &h(&msg.from.address)), + ("mailto", &h(&msg.mailto)), + ("msg_path", &h(msg.pathescape_msg_id().to_str().unwrap())), // TODO escape # in body? ("body", &unformat_flowed(&msg.body)), ],