]> Sergey Matveev's repositories - public-inbox.git/blobdiff - Documentation/mknews.perl
www: remove smsg_mime API and adjust callers
[public-inbox.git] / Documentation / mknews.perl
index 3bdebfce7a5c1a9ab4fe98f77eb9d8fd25a51c23..965c30c1dcb06888f445d5c3b1303e32553d2f29 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 {