crabmail

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

commit 59cf15cc243773a4383568cc1f3b9e4103f842c6
parent 6d66de69698bbd90e54b6e6809858c5280916b30
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun, 23 Jan 2022 15:06:53 -0800

add List archive header

capitalist other headers

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

diff --git a/src/main.rs b/src/main.rs @@ -403,11 +403,13 @@ impl Email { url.push_str(&format!("{}={}&", k, urlencoding::encode(v))); }; let fixed_id = format!("<{}>", &self.id); - pushencode("cc", &from); - pushencode("in-reply-to", &fixed_id); - pushencode("subject", &format!("Re: {}", thread.messages[0].subject)); + pushencode("Cc", &from); + pushencode("In-Reply-To", &fixed_id); + let list_url = format!("{}/{}", &Config::global().base_url, &thread.list_name); + pushencode("List-Archive", &list_url); + pushencode("Subject", &format!("Re: {}", thread.messages[0].subject)); // quoted body - url.push_str("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!(