]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei: always pass $lei to LeiAuth->op_merge
authorEric Wong <e@80x24.org>
Sun, 24 Oct 2021 00:20:39 +0000 (18:20 -0600)
committerEric Wong <e@80x24.org>
Sun, 24 Oct 2021 02:20:33 +0000 (02:20 +0000)
This will make future developments easier.

lib/PublicInbox/LeiExportKw.pm
lib/PublicInbox/LeiForgetSearch.pm
lib/PublicInbox/LeiImport.pm
lib/PublicInbox/LeiLsMailSource.pm
lib/PublicInbox/LeiMailDiff.pm
lib/PublicInbox/LeiRefreshMailSync.pm
lib/PublicInbox/LeiTag.pm
lib/PublicInbox/LeiXSearch.pm

index 5be9e51ff311c68e743d80480f9d12ef3d30c6e2..756d0e9c0a4d0d5831ad761cd046ea041394e37b 100644 (file)
@@ -115,7 +115,7 @@ EOM
                $self->{nwr}->{-skip_creat} = 1;
        }
        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';
index f353fe52a95808cde176d113347c61db948afb61..dfeb029322abd4fbd0e6d32b8f6f04c5620529b3 100644 (file)
@@ -46,7 +46,7 @@ sub lei_forget_search {
                $self->prepare_inputs($lei, $self->{o_remote}) or return;
        }
        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;
        net_merge_all_done($self) unless $lei->{auth};
index 2f8fd6c64f69f4348a6bcb77335ba8bcdf32d85d..d8f39fdf171bfcd99ac507b02acc0887fec12b96 100644 (file)
@@ -103,7 +103,7 @@ sub do_import_index ($$@) {
        ($lei->{opt}->{'new-only'} && (!$net || !$net->{imap_order})) and
                warn "# --new-only is only for IMAP\n";
        my $ops = {};
-       $lei->{auth}->op_merge($ops, $self) if $lei->{auth};
+       $lei->{auth}->op_merge($ops, $self, $lei) if $lei->{auth};
        $lei->{-eml_noisy} = 1;
        (my $op_c, $ops) = $lei->workers_start($self, $j, $ops);
        $lei->{wq1} = $self;
index 7c3c0cda18d61365bb982990ac7f83ec3ec3516f..5eb7032d78b7252e47dd861c76f1e48ad14b7dad 100644 (file)
@@ -96,7 +96,7 @@ sub lei_ls_mail_source {
        }
        $lei->start_pager if $isatty;
        my $ops = {};
-       $lei->{auth}->op_merge($ops, $self);
+       $lei->{auth}->op_merge($ops, $self, $lei);
        (my $op_c, $ops) = $lei->workers_start($self, 1, $ops);
        $lei->{wq1} = $self;
        $lei->{-err_type} = 'non-fatal';
index a29ae2259f71dfba9e5c2f1f5d28305685da73f4..4f3a4608d8e0beceafda3830b9fff41ffbae6b4d 100644 (file)
@@ -83,7 +83,7 @@ sub lei_mail_diff {
        $lei->{opt}->{color} //= $isatty;
        $lei->start_pager if $isatty;
        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';
index 0cb9f3dccd48ae934937541453692fd492c91e4a..f516f5725f6eb17eeb7f888661b17b831633dd97 100644 (file)
@@ -82,7 +82,7 @@ EOM
        $lei->{opt}->{'mail-sync'} = 1; # for prepare_inputs
        $self->prepare_inputs($lei, \@folders) or return;
        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';
index 817b87f81519aadcad426b5ead77b758d796787f..77654d1a2f2246d270ce5a3ed68888e499f46c36 100644 (file)
@@ -49,7 +49,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';
index 119070a289de8bf9b25b8532ece321043286ac40..acc36897d4e3f2c5864200516f2b19db14292ca4 100644 (file)
@@ -548,7 +548,7 @@ sub do_query {
                'child_error' => [ $lei ],
                'incr_start_query' => [ $self, $lei ],
        };
-       $lei->{auth}->op_merge($ops, $l2m) if $l2m && $lei->{auth};
+       $lei->{auth}->op_merge($ops, $l2m, $lei) if $l2m && $lei->{auth};
        my $end = $lei->pkt_op_pair;
        $lei->{1}->autoflush(1);
        $lei->start_pager if delete $lei->{need_pager};