crabmail

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

commit 60bd931257ced9e2ac9825cb674c4496e5045582
parent 32670a61d53cc398acd3dc2cb17e8d0caa3ad2a7
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sat, 19 Mar 2022 11:26:33 -0700

cleanup

Diffstat:
Msrc/templates/html.rs | 10++++------
1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/templates/html.rs b/src/templates/html.rs @@ -20,7 +20,6 @@ const header: &str = r#"<!DOCTYPE html> "#; const footer: &str = r#" -<hr> Archive generated with <a href='https://crabmail.flounder.online/'>crabmail</a> </body> </html> @@ -164,9 +163,9 @@ impl Thread { {subject} </span> <br> - From: <a href="{from_addr}">"{from_name}" {from_addr}</a> + From: {from} <br> - Date: <span class="light">{date}</span> + Date: <span>{date}</span> <details> <summary>More headers</summary> {extra_headers} @@ -185,8 +184,7 @@ impl Thread { &[ ("msg_id", &x(&msg.id)), ("subject", &x(&msg.subject)), - ("from_addr", &x(&msg.from.address)), - ("from_name", &msg.from.to_html()), + ("from", &msg.from.to_html()), ("date", &x(&msg.date)), ("extra_headers", &extra_headers), ("body", &email_body(&msg.body)), @@ -211,7 +209,7 @@ impl StrMessage { {subject} </span> <a href="mailto:{from}" class="bold">{from}</a> - <span class="light">{date} + <span>{date}</span> <a class="permalink" href=#{id}>🔗</a> </div> </div>