]> Sergey Matveev's repositories - public-inbox.git/blobdiff - Documentation/mknews.perl
wwwatomstream: simplify feed_update callers
[public-inbox.git] / Documentation / mknews.perl
index 3bdebfce7a5c1a9ab4fe98f77eb9d8fd25a51c23..ba049d9e64e1a6229ba9e11e0314d0cdcd7593d7 100755 (executable)
@@ -102,9 +102,10 @@ sub mime2txt {
 }
 
 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 {
@@ -130,7 +131,7 @@ sub atom_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