crabmail

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

commit a32203d4444e1322724521cf4bad55913dc22085
parent a89fd41c946a2d532dbd71d463bcbff8bb0c3205
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun, 12 Dec 2021 17:54:07 -0800

bug fizes

Diffstat:
Mcrabmail/src/main.rs | 2+-
Mcrabmail/templates/base.html | 2+-
Mcrabmail/templates/threadlist.html | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/crabmail/src/main.rs b/crabmail/src/main.rs @@ -182,7 +182,7 @@ fn main() -> Result<()> { .create(true) .write(true) .truncate(true) - .open(thread_dir.join(format!("{}", root.date)))?; + .open(thread_dir.join(format!("{}.html", root.date)))?; file.write(Thread { root, messages }.render()?.as_bytes()) .ok(); } diff --git a/crabmail/templates/base.html b/crabmail/templates/base.html @@ -16,7 +16,7 @@ </div> <hr class="thin"> <div class="footer"> - Archive generated with <a href="https://git.alexwennerberg.com/crabmail">crabmail</a> + Archive generated with <a href="https://git.alexwennerberg.com/crabmail/">crabmail</a> </div> </body> </html> diff --git a/crabmail/templates/threadlist.html b/crabmail/templates/threadlist.html @@ -6,7 +6,7 @@ <table> {% for message in messages %} <tr> - <td><a href="threads/{{message.date}}">{{message.subject}}</a></td> + <td><a href="threads/{{message.date}}.html">{{message.subject}}</a></td> <td> {{message.from}}</td> <td>{{message.date | time_ago}}</td> {% endfor %}