+ my $title = "<$html> not found";
+ my $s = "<pre>Message-ID <$html>\nnot found\n";
+ if ($n_partial) {
+ $code = 300;
+ my $es = $n_partial == 1 ? '' : 'es';
+ $s .= "\n$n_partial partial match$es found:\n\n";
+ my $cur_name = $cur->{name};
+ foreach my $pair (@partial) {
+ my ($ibx, $res) = @$pair;
+ my $env = $ctx->{env} if $ibx->{name} eq $cur_name;
+ my $u = $ibx->base_url($env) or next;
+ foreach my $m (@$res) {
+ my $p = PublicInbox::Hval->new_msgid($m);
+ my $r = $p->{href};
+ my $t = $p->as_html;
+ $s .= qq{<a\nhref="$u$r/">$u$t/</a>\n};
+ }
+ }
+ }
+ my $ext = ext_urls($ctx, $mid, $href, $html);
+ if ($ext ne '') {
+ $s .= $ext;
+ $code = 300;
+ }
+ $ctx->{-html_tip} = $s .= '</pre>';
+ $ctx->{-title_html} = $title;
+ $ctx->{-upfx} = '../';
+ PublicInbox::WwwStream->response($ctx, $code);
+}