- my $h = Email::Simple->new($mref)->header_obj;
-
- my $err = $gz->deflate(
- PublicInbox::Mbox::msg_hdr($ctx, $h, $smsg->{mid}),
- $buf);
- return gzip_fail($ctx, $err) if $err != Z_OK;
-
- $err = $gz->deflate(PublicInbox::Mbox::msg_body($$mref), $buf);
- return gzip_fail($ctx, $err) if $err != Z_OK;
-
- return $buf if length($buf) >= 8192;
-
- # be fair to other clients on public-inbox-httpd:
- $self->{buf} = $buf;
- return '';
+ my $h = PublicInbox::Eml->new($mref)->header_obj;
+ $self->zmore(
+ PublicInbox::Mbox::msg_hdr($ctx, $h, $smsg->{mid})
+ );
+ return $self->translate(PublicInbox::Mbox::msg_body($$mref));