diff options
-rw-r--r-- | lib/PublicInbox/View.pm | 2 |
1 files changed, 2 insertions, 0 deletions
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 = "<a\nid=\"s$final_anchor\">"; $next .= $final_anchor == 1 ? 'only message in' : 'end of'; $next .= " thread</a>, back to <a\nhref=\"../\">index</a>\n"; + $mid = PublicInbox::Hval->new_msgid($mid)->as_href; + $next .= "download: <a\nhref=\"$mid.mbox.gz\">mbox.gz</a>\n\n"; $fh->write("<hr />" . PRE_WRAP . $next . $foot . "</pre></body></html>"); $fh->close; |