lib/PublicInbox/LeiExportKw.pm | 2 +- lib/PublicInbox/LeiForgetSearch.pm | 2 +- lib/PublicInbox/LeiImport.pm | 2 +- lib/PublicInbox/LeiLsMailSource.pm | 2 +- lib/PublicInbox/LeiMailDiff.pm | 2 +- lib/PublicInbox/LeiRefreshMailSync.pm | 2 +- lib/PublicInbox/LeiTag.pm | 2 +- lib/PublicInbox/LeiXSearch.pm | 2 +- diff --git a/lib/PublicInbox/LeiExportKw.pm b/lib/PublicInbox/LeiExportKw.pm index 5be9e51ff311c68e743d80480f9d12ef3d30c6e2..756d0e9c0a4d0d5831ad761cd046ea041394e37b 100644 --- a/lib/PublicInbox/LeiExportKw.pm +++ b/lib/PublicInbox/LeiExportKw.pm @@ -115,7 +115,7 @@ 'imap_add_kw' : 'imap_set_kw'); $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'; diff --git a/lib/PublicInbox/LeiForgetSearch.pm b/lib/PublicInbox/LeiForgetSearch.pm index f353fe52a95808cde176d113347c61db948afb61..dfeb029322abd4fbd0e6d32b8f6f04c5620529b3 100644 --- a/lib/PublicInbox/LeiForgetSearch.pm +++ b/lib/PublicInbox/LeiForgetSearch.pm @@ -46,7 +46,7 @@ if ($self->{o_remote}) { # setup lei->{auth} $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}; diff --git a/lib/PublicInbox/LeiImport.pm b/lib/PublicInbox/LeiImport.pm index 2f8fd6c64f69f4348a6bcb77335ba8bcdf32d85d..d8f39fdf171bfcd99ac507b02acc0887fec12b96 100644 --- a/lib/PublicInbox/LeiImport.pm +++ b/lib/PublicInbox/LeiImport.pm @@ -103,7 +103,7 @@ } ($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; diff --git a/lib/PublicInbox/LeiLsMailSource.pm b/lib/PublicInbox/LeiLsMailSource.pm index 7c3c0cda18d61365bb982990ac7f83ec3ec3516f..5eb7032d78b7252e47dd861c76f1e48ad14b7dad 100644 --- a/lib/PublicInbox/LeiLsMailSource.pm +++ b/lib/PublicInbox/LeiLsMailSource.pm @@ -96,7 +96,7 @@ $json->pretty(1)->indent(2) if $isatty || $lei->{opt}->{pretty}; } $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'; diff --git a/lib/PublicInbox/LeiMailDiff.pm b/lib/PublicInbox/LeiMailDiff.pm index a29ae2259f71dfba9e5c2f1f5d28305685da73f4..4f3a4608d8e0beceafda3830b9fff41ffbae6b4d 100644 --- a/lib/PublicInbox/LeiMailDiff.pm +++ b/lib/PublicInbox/LeiMailDiff.pm @@ -83,7 +83,7 @@ my $isatty = -t $lei->{1}; $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'; diff --git a/lib/PublicInbox/LeiRefreshMailSync.pm b/lib/PublicInbox/LeiRefreshMailSync.pm index 0cb9f3dccd48ae934937541453692fd492c91e4a..f516f5725f6eb17eeb7f888661b17b831633dd97 100644 --- a/lib/PublicInbox/LeiRefreshMailSync.pm +++ b/lib/PublicInbox/LeiRefreshMailSync.pm @@ -82,7 +82,7 @@ my $self = bless { missing_ok => 1, lms => $lms }, __PACKAGE__; $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'; diff --git a/lib/PublicInbox/LeiTag.pm b/lib/PublicInbox/LeiTag.pm index 817b87f81519aadcad426b5ead77b758d796787f..77654d1a2f2246d270ce5a3ed68888e499f46c36 100644 --- a/lib/PublicInbox/LeiTag.pm +++ b/lib/PublicInbox/LeiTag.pm @@ -49,7 +49,7 @@ $self->prepare_inputs($lei, \@argv) or return; 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'; diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm index 119070a289de8bf9b25b8532ece321043286ac40..acc36897d4e3f2c5864200516f2b19db14292ca4 100644 --- a/lib/PublicInbox/LeiXSearch.pm +++ b/lib/PublicInbox/LeiXSearch.pm @@ -548,7 +548,7 @@ 'x_it' => [ $lei ], '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};