]> Sergey Matveev's repositories - public-inbox.git/blobdiff - Documentation/mknews.perl
wwwatomstream: support async blob fetch
[public-inbox.git] / Documentation / mknews.perl
index ba049d9e64e1a6229ba9e11e0314d0cdcd7593d7..2d22d147ec4181ec9fa816a90912741555100b47 100755 (executable)
@@ -147,9 +147,10 @@ EOF
 }
 
 sub mime2atom  {
-       my ($out, $astream, $mime, $ctx) = @_;
-       my $smsg = bless { mime => $mime }, 'PublicInbox::Smsg';
-       if (defined(my $str = $astream->feed_entry($smsg))) {
+       my ($out, $astream, $eml, $ctx) = @_;
+       my $smsg = bless {}, 'PublicInbox::Smsg';
+       $smsg->populate($eml);
+       if (defined(my $str = $astream->feed_entry($smsg, $eml))) {
                print $out $str or die;
        }
 }