From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 231901FB0B for ; Sat, 22 Aug 2015 11:41:25 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 6/6] view: wire up mbox.gz links Date: Sat, 22 Aug 2015 11:41:24 +0000 Message-Id: <1440243684-2205-6-git-send-email-e@80x24.org> In-Reply-To: <1440243684-2205-1-git-send-email-e@80x24.org> References: <1440243684-2205-1-git-send-email-e@80x24.org> List-Id: 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 e333906..fe37a9f 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; -- EW