crabmail

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

commit 807ccac7f02d2429267719f64e664a65b8684f16
parent f7dedf62526dfe4169cb32eb11211d3f110205c2
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Tue, 14 Dec 2021 16:29:08 -0800

Add reply link

Diffstat:
Msrc/main.rs | 4++++
Mtemplates/thread.html | 5++++-
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs @@ -48,6 +48,10 @@ impl<'a> MailThread<'a> { pub fn last_reply(&self) -> u64 { return self.messages[self.messages.len() - 1].date; } + + fn build_atom_feed() -> String { + String::new() + } } impl Email { diff --git a/templates/thread.html b/templates/thread.html @@ -10,7 +10,10 @@ <b> <a href="mailto:{{message.from.addr}}" class="addr">{{message.from}}</a></b> <span class="timeago">{{message.date | time_ago}}</span> - <a href="#{{message.id}}">🔗</a> + <a title="permalink" href="#{{message.id}}">🔗</a> + {% match message.in_reply_to %}{% when Some with (replies_to) %} + <br>Re: + <a title="replies-to" href="#{{replies_to}}">{{replies_to}}</a>{%when none %}{% endmatch %} <div class="email-body"> {{message.body}} </div>