}
sub mime2html {
- my ($out, $mime, $ctx) = @_;
- my $smsg = bless { mime => $mime }, 'PublicInbox::Smsg';
- print $out PublicInbox::View::index_entry($smsg, $ctx, 1) or die;
+ my ($out, $eml, $ctx) = @_;
+ my $smsg = bless {}, 'PublicInbox::Smsg';
+ $smsg->populate($eml);
+ print $out PublicInbox::View::eml_entry($ctx, $smsg, $eml, 1) or die;
}
sub html_start {
delete $astream->{emit_header};
my $ibx = $ctx->{-inbox};
my $title = PublicInbox::WwwAtomStream::title_tag($ibx->description);
- my $updated = PublicInbox::WwwAtomStream::feed_updated(gmtime($mtime));
+ my $updated = PublicInbox::WwwAtomStream::feed_updated($mtime);
print $out <<EOF or die;
<?xml version="1.0" encoding="us-ascii"?>
<feed