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
}
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;
}
}