crabmail

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

commit 0dfc8c3490a0f8de1d349a8c7ff4bded7781fc0a
parent 635cb2080dfb7d29fbc5407e1a45974bb2913ba9
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun,  3 Apr 2022 16:39:04 -0700

add mailto link to gmi archive

Diffstat:
MTODO | 3+++
Msrc/templates/gmi.rs | 5++++-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/TODO b/TODO @@ -2,6 +2,9 @@ TODO ==== atom get item href working on list very git-send-email works +setup daemon +setup gemini server + later ---- diff --git a/src/templates/gmi.rs b/src/templates/gmi.rs @@ -31,7 +31,10 @@ impl List { .chunks(PAGE_SIZE) .enumerate() .map(|(n, thread_topics)| { - let mut threads = format!("## {}\n{}\n", self.config.name, self.config.description); + let mut threads = format!( + "## {0}\n{1}\n=>mailto:{2} {2}\n", + self.config.name, self.config.description, self.config.email + ); for thread in thread_topics { threads.push_str( // TODO reuse with html templates?