- my ($nr, $ctx) = @_;
- my $msgs = $ctx->{msgs};
- while (my $smsg = shift @$msgs) {
- my $m = $ctx->{-inbox}->smsg_mime($smsg) or next;
- my $more = scalar @$msgs;
- return PublicInbox::View::index_entry($m, $ctx, $more);
+ my ($ctx, $eml) = @_;
+ print { $ctx->zfh } $ctx->html_top if exists $ctx->{-html_tip};
+
+ if ($eml) {
+ $ctx->{smsg}->populate($eml) if !$ctx->{ibx}->{over};
+ return PublicInbox::View::eml_entry($ctx, $eml);