diff options
author | Eric Wong <e@80x24.org> | 2022-09-10 08:17:27 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-09-10 19:50:56 +0000 |
commit | 0befaaa7b1ed2015fb5d6bf159db7d8972015f58 (patch) | |
tree | d8b65767c6602b99aed755ed9abba3ea96a7944a /lib/PublicInbox/MboxGz.pm | |
parent | 27f50c13952376b7482280f16a6cd8e5dc421915 (diff) | |
download | public-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.pm | 3 |
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}; |