diff options
author | Eric Wong <e@80x24.org> | 2019-12-31 10:30:12 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-01-01 07:50:45 +0000 |
commit | a7d4f457ec2b4531b3aaeb6cef1383bbda5b431a (patch) | |
tree | 149f48424932509f9374191e2af441a2695cc577 /script/public-inbox-purge | |
parent | 8de49b2d3097e294650b1ee1554f45c6d2d29d67 (diff) | |
download | public-inbox-a7d4f457ec2b4531b3aaeb6cef1383bbda5b431a.tar.gz |
And update callers to use it, as it makes the code a bit cleaner. Probably irrelvant, but it should be faster, too, as "perl -I lib -w -MO=Deparse $FILE" shows REJECT() calls are constant-folded.
Diffstat (limited to 'script/public-inbox-purge')
-rwxr-xr-x | script/public-inbox-purge | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/script/public-inbox-purge b/script/public-inbox-purge index f103ccf7..22b56a8e 100755 --- a/script/public-inbox-purge +++ b/script/public-inbox-purge @@ -9,12 +9,10 @@ use warnings; use Getopt::Long qw(:config gnu_getopt no_ignore_case auto_abbrev); use PublicInbox::AdminEdit; PublicInbox::Admin::check_require('-index'); -use PublicInbox::Filter::Base; +use PublicInbox::Filter::Base qw(REJECT); use PublicInbox::MIME; require PublicInbox::V2Writable; -*REJECT = \&PublicInbox::Filter::Base::REJECT; - my $usage = "$0 [--all] [INBOX_DIRS] </path/to/message"; my $opt = { verbose => 1, all => 0, -min_inbox_version => 2 }; GetOptions($opt, @PublicInbox::AdminEdit::OPT) or |