crabmail

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

commit 1e897d05d0458b33c9e0a48232e558c6a9b95c01
parent 5e69ed9f2907d0d3ebd2c650ebecf72f1cbe583c
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Tue, 14 Dec 2021 16:58:50 -0800

globals

Diffstat:
Msrc/main.rs | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs @@ -14,6 +14,9 @@ use url::Url; mod filters; +const TITLE: &str = "Flounder Mailing List" +const LIST_EMAIL: &str = "~aw/flounder@lists.sr.ht" + const HELP: &str = "\ Usage: crabmail @@ -58,7 +61,7 @@ impl Email { // mailto:... populated with everything you need pub fn mailto(&self) -> String { // TODO configurable - let mut url = Url::parse(&format!("mailto:~aw/flounder@lists.sr.ht")).unwrap(); + let mut url = Url::parse(&format!("mailto:{}", LIST_EMAIL)).unwrap(); url.query_pairs_mut() .append_pair("cc", &self.from.to_string()); url.query_pairs_mut().append_pair("in-reply-to", &self.id);