]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiTag.pm
lei rm|tag: drop redundant mbox+net callbacks
[public-inbox.git] / lib / PublicInbox / LeiTag.pm
index 817b87f81519aadcad426b5ead77b758d796787f..d64a9f86e05ac69cc440874a39c88b1bd88465e7 100644 (file)
@@ -19,23 +19,12 @@ sub input_eml_cb { # used by PublicInbox::LeiInput::input_fh
        }
 }
 
-sub input_mbox_cb {
-       my ($eml, $self) = @_;
-       $eml->header_set($_) for (qw(X-Status Status));
-       input_eml_cb($self, $eml);
-}
-
 sub pmdir_cb { # called via wq_io_do from LeiPmdir->each_mdir_fn
        my ($self, $f) = @_;
        my $eml = eml_from_path($f) or return;
        input_eml_cb($self, $eml);
 }
 
-sub input_net_cb { # imap_each, nntp_each cb
-       my ($url, $uid, $kw, $eml, $self) = @_;
-       input_eml_cb($self, $eml);
-}
-
 sub lei_tag { # the "lei tag" method
        my ($lei, @argv) = @_;
        my $sto = $lei->_lei_store(1);
@@ -49,7 +38,7 @@ sub lei_tag { # the "lei tag" method
        grep(defined, @$vmd_mod{qw(+kw +L -L -kw)}) or
                return $lei->fail('no keywords or labels specified');
        my $ops = {};
-       $lei->{auth}->op_merge($ops, $self) if $lei->{auth};
+       $lei->{auth}->op_merge($ops, $self, $lei) if $lei->{auth};
        (my $op_c, $ops) = $lei->workers_start($self, 1, $ops);
        $lei->{wq1} = $self;
        $lei->{-err_type} = 'non-fatal';