From 539f90b266ff9cf476234d87036157c008569835 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 22 Aug 2015 11:41:24 +0000 Subject: view: wire up mbox.gz links To reduce clutter, we will not link to uncompressed versions. Users should be able to download entire threads for offline reading, enable this feature for them. --- lib/PublicInbox/View.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index e3339066..fe37a9fc 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -168,6 +168,8 @@ sub emit_thread_html { my $next = ""; $next .= $final_anchor == 1 ? 'only message in' : 'end of'; $next .= " thread, back to index\n"; + $mid = PublicInbox::Hval->new_msgid($mid)->as_href; + $next .= "download: mbox.gz\n\n"; $fh->write("
" . PRE_WRAP . $next . $foot . ""); $fh->close; -- cgit v1.2.3-24-ge0c7