about summary refs log tree commit homepage
path: root/lib/PublicInbox/MboxGz.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-09-10 08:17:27 +0000
committerEric Wong <e@80x24.org>2022-09-10 19:50:56 +0000
commit0befaaa7b1ed2015fb5d6bf159db7d8972015f58 (patch)
treed8b65767c6602b99aed755ed9abba3ea96a7944a /lib/PublicInbox/MboxGz.pm
parent27f50c13952376b7482280f16a6cd8e5dc421915 (diff)
downloadpublic-inbox-0befaaa7b1ed2015fb5d6bf159db7d8972015f58.tar.gz
mbox*: use multi-arg ->translate and ->write
No need to make multiple method calls from here,
now that ->translate and GzipFilter->write both support
multiple args.
Diffstat (limited to 'lib/PublicInbox/MboxGz.pm')
-rw-r--r--lib/PublicInbox/MboxGz.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/MboxGz.pm b/lib/PublicInbox/MboxGz.pm
index 56f5adcf..533d2ff1 100644
--- a/lib/PublicInbox/MboxGz.pm
+++ b/lib/PublicInbox/MboxGz.pm
@@ -37,8 +37,7 @@ sub getline {
         my $cb = $self->{cb} or return;
         while (my $smsg = $cb->($self)) {
                 my $eml = $self->{ibx}->smsg_eml($smsg) or next;
-                $self->zmore(msg_hdr($self, $eml));
-                return $self->translate(msg_body($eml));
+                return $self->translate(msg_hdr($self, $eml), msg_body($eml));
         }
         # signal that we're done and can return undef next call:
         delete $self->{cb};