crabmail

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

commit 4631946e275e7b3ec5a54d3ac2dd9bd46e88dfaf
parent 6caab6b7dd8024e9c2a431b41b4b2a99c12e9df9
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Tue, 29 Mar 2022 19:55:29 -0700

cleanup

Diffstat:
MTODO | 2--
Msrc/models.rs | 3+--
Msrc/templates/gmi.rs | 2+-
3 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/TODO b/TODO @@ -1,9 +1,7 @@ TODO ==== replace eml export with mbox for some reason? -audit for security (path bugs, html escape bugs) atom get item href working on list -remove latest anchor. use ur keyboard; URL encode spaces in links for gemini export later diff --git a/src/models.rs b/src/models.rs @@ -11,8 +11,7 @@ use std::path::PathBuf; // xml = "/{list_name}/atom.xml" // thread_path = "/{list_name}/{thread_id}.html // thread_xml = "/{list_name}/{thread_id}.xml -// raw_email = "/{list_name}/messages/{message_id}.eml -// paginate index somehow (TBD) +// raw_email = "/{list_name}/messages/{message_id}.mbox // TODO a better way to handle these is to use lifetimes rather than ownership // I should implement an iterator that writes each message without holding them in memory probably diff --git a/src/templates/gmi.rs b/src/templates/gmi.rs @@ -107,7 +107,7 @@ Date: {date} Message-Id: {msg_id} To: {to}{optional_headers} => {mailto} Reply -=> ../messages/{msg_path}.eml Export +=> ../messages/{msg_path}.mbox Export -------------------------------------- {body} "#,