From: Eric Wong Date: Sat, 22 Aug 2015 11:41:24 +0000 (+0000) Subject: view: wire up mbox.gz links X-Git-Tag: v1.0.0~1000 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=539f90b266ff9cf476234d87036157c008569835;p=public-inbox.git 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. --- 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;