crabmail

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

commit 54e41699fd9b9af5f9019273ca5a8389c5c287e2
parent 364eee06cac7a7be55d7494ce6390a8f1d024f7c
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun, 19 Dec 2021 09:15:15 -0800

small style changes

Diffstat:
Msrc/main.rs | 6++----
Msrc/style.css | 2+-
2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/main.rs b/src/main.rs @@ -21,7 +21,6 @@ use std::io::prelude::*; use urlencoding; use config::{Config, INSTANCE}; -mod atom; mod config; mod mbox; mod utils; @@ -229,7 +228,8 @@ impl<'a> MailThread<'a> { div(class="email-body") { : Raw(utils::email_body(&message.body)) } - div(class="bold right"){ + br; + div(class="bold"){ a (href=message.mailto()) { :"✉️ reply" } @@ -391,7 +391,6 @@ fn main() -> Result<()> { let mut email_index: HashMap<String, Email> = HashMap::new(); for entry in mbox { let buffer = entry.unwrap(); - // println!("{}", str::from_utf8(&buffer)?); let email = match local_parse_email(&buffer) { Ok(e) => e, Err(e) => { @@ -463,7 +462,6 @@ fn main() -> Result<()> { for leftover in curr_threads { let file_to_remove = out_dir.join("threads").join(format!("{}.html", leftover)); - println!("{:?}", file_to_remove); std::fs::remove_file(&file_to_remove)?; } diff --git a/src/style.css b/src/style.css @@ -6,7 +6,7 @@ body { font-family: "Roboto", Helvetica, Arial, Sans-serif; word-wrap: break-word; line-height: 1.5; - max-width: 70ch; + max-width: 72ch; padding: 1ch; }