- my ($out, $mime, $ctx) = @_;
- my $smsg = bless { mime => $mime }, 'PublicInbox::SearchMsg';
- print $out PublicInbox::View::index_entry($smsg, $ctx, 1) or die;
+ my ($out, $eml, $ctx) = @_;
+ my $smsg = $ctx->{smsg} = bless {}, 'PublicInbox::Smsg';
+ $smsg->populate($eml);
+ $ctx->{msgs} = [ 1 ]; # for <hr> in eml_entry
+ print $out PublicInbox::View::eml_entry($ctx, $eml) or die;