crabmail

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

commit 6d66de69698bbd90e54b6e6809858c5280916b30
parent c149c655881c3af49af1ea8255b943a83180ed49
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun, 23 Jan 2022 14:32:49 -0800

make reply link default to false

Diffstat:
Mcrabmail.conf | 2+-
Msrc/config.rs | 2+-
Msrc/main.rs | 1+
3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/crabmail.conf b/crabmail.conf @@ -4,7 +4,7 @@ email_fmt=lists+%s@flounder.online title_fmt=%s public inbox description=All my lists -reply_add_link=true +reply_add_link=false # optionally wirte/overwrite config for specific lists [smallweb] diff --git a/src/config.rs b/src/config.rs @@ -31,7 +31,7 @@ pub struct Config { pub relative_times: bool, // TODO rem pub include_raw: bool, // TODO rem pub now: String, // TODO rem - pub reply_add_link: bool, + pub reply_add_link: bool, // Might remove this pub subsections: Vec<Subsection>, } diff --git a/src/main.rs b/src/main.rs @@ -408,6 +408,7 @@ impl Email { pushencode("subject", &format!("Re: {}", thread.messages[0].subject)); // quoted body url.push_str("body="); + // This is ugly and I dont like it. May deprecate it if Config::global().reply_add_link { url.push_str(&format!( "[View original message: {}]%0A%0A",