sub emit_index_nosrch {
my ($ctx, $state) = @_;
my $ibx = $ctx->{-inbox};
+ my $fh = $state->{fh};
my (undef, $last) = each_recent_blob($ctx, sub {
my ($path, $commit, $ts, $u, $subj) = @_;
$state->{first} ||= $commit;
my $mime = do_cat_mail($ibx, $path) or return 0;
- PublicInbox::View::index_entry($mime, 0, $state);
+ $fh->write(PublicInbox::View::index_entry($mime, $state));
1;
});
$last;
my $from = $header_obj->header('From') or return;
my ($email) = PublicInbox::Address::emails($from);
- my $name = PublicInbox::Address::from_name($from);
+ my $name = join(', ',PublicInbox::Address::names($from));
$name = ascii_html($name);
$email = ascii_html($email);