crabmail

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

commit 9ba844c6e06ee12fa7180423437a3351cfddc8eb
parent acdfa0b181aed587f39148c082eb3ee59d044560
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun, 20 Mar 2022 14:03:28 -0700

cleanup

Diffstat:
MTODO | 5++---
Msrc/main.rs | 1+
Msrc/models.rs | 4+---
3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/TODO b/TODO @@ -1,14 +1,13 @@ TODO ==== -delete files if not written -atom feeds working +atom feeds working -> pull last x into threads paginate list home fix docs -check for html escape bugz fix "to" in email export reference mblaze command, add examples to readme fix all the build warnings remove unused +check for html escape bugz Duplicate ID verification: warn on duplicate ID, use first received-date. This is to prevent someone overwriting old emails secretly diff --git a/src/main.rs b/src/main.rs @@ -109,6 +109,7 @@ impl List { let message_dir = self.out_dir.join("messages"); std::fs::create_dir_all(&thread_dir).unwrap(); std::fs::create_dir_all(&message_dir).unwrap(); + // Used for atom for thread_ids in &self.thread_idx.threads { // Load thread let thread = Thread::new(thread_ids, &self.config.name); diff --git a/src/models.rs b/src/models.rs @@ -1,10 +1,8 @@ use crate::config::{Config, Subsection}; use crate::threading::{Msg, ThreadIdx}; -use crate::time::Date; use mail_builder::headers::text::Text; use mail_builder::MessageBuilder; -use mail_parser::{Addr, HeaderName, HeaderValue, Message, MessagePart}; -use mail_parser::{MimeHeaders, RfcHeader}; +use mail_parser::{Addr, HeaderValue, Message, RfcHeader}; use std::borrow::Cow; use std::path::PathBuf;