diff options
author | Eric Wong <e@80x24.org> | 2021-08-17 08:52:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-08-18 11:41:31 +0000 |
commit | 29dd03ae81565f1430a39969b5b5d01dac68071c (patch) | |
tree | 4181ba69752452567d9153ecb3ff89db35ea1180 /lib/PublicInbox/LeiForgetMailSync.pm | |
parent | 38f2f94b97199f0f81fb93ab6d3c34651b661d6c (diff) | |
download | public-inbox-29dd03ae81565f1430a39969b5b5d01dac68071c.tar.gz |
lei: add ->lms shortcut for LeiMailSync
We access this read-only in many places (and will in more), so provide a shortcut to simplify callers.
Diffstat (limited to 'lib/PublicInbox/LeiForgetMailSync.pm')
-rw-r--r-- | lib/PublicInbox/LeiForgetMailSync.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiForgetMailSync.pm b/lib/PublicInbox/LeiForgetMailSync.pm index 46dde1a7..c74ba25d 100644 --- a/lib/PublicInbox/LeiForgetMailSync.pm +++ b/lib/PublicInbox/LeiForgetMailSync.pm @@ -14,8 +14,7 @@ use PublicInbox::LeiExportKw; sub lei_forget_mail_sync { my ($lei, @folders) = @_; - my $sto = $lei->_lei_store or return; - my $lms = $sto->search->lms or return; + my $lms = $lei->lms or return; my $err = $lms->arg2folder($lei, \@folders); $lei->qerr(@{$err->{qerr}}) if $err->{qerr}; return $lei->fail($err->{fail}) if $err->{fail}; |