diff options
author | Eric Wong <e@80x24.org> | 2021-03-03 13:48:56 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-04 14:29:19 -0400 |
commit | 6fd748af8d4792d8cb857c3d2ec132ec3cca9bb8 (patch) | |
tree | 04d20542291e3ad6550950bbb3d29221fedcd577 /lib/PublicInbox/LeiConvert.pm | |
parent | 06349427654334deb14b21769a66e03a3e646684 (diff) | |
download | public-inbox-6fd748af8d4792d8cb857c3d2ec132ec3cca9bb8.tar.gz |
This saves us some code and redundant callsites for eml_from_path. We'll change maildir_each_eml to include the filename to facilitate an upcoming change to "lei q" without --augment
Diffstat (limited to 'lib/PublicInbox/LeiConvert.pm')
-rw-r--r-- | lib/PublicInbox/LeiConvert.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiConvert.pm b/lib/PublicInbox/LeiConvert.pm index 4c0bbd88..0c705ba4 100644 --- a/lib/PublicInbox/LeiConvert.pm +++ b/lib/PublicInbox/LeiConvert.pm @@ -7,7 +7,6 @@ use strict; use v5.10.1; use parent qw(PublicInbox::IPC); use PublicInbox::Eml; -use PublicInbox::InboxWritable qw(eml_from_path); use PublicInbox::LeiStore; use PublicInbox::LeiOverview; @@ -24,7 +23,7 @@ sub net_cb { # callback for ->imap_each, ->nntp_each } sub mdir_cb { - my ($kw, $eml, $self) = @_; + my ($f, $kw, $eml, $self) = @_; $self->{wcb}->(undef, { kw => $kw }, $eml); } |