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 /lib/PublicInbox/WatchMaildir.pm | |
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 'lib/PublicInbox/WatchMaildir.pm')
-rw-r--r-- | lib/PublicInbox/WatchMaildir.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/WatchMaildir.pm b/lib/PublicInbox/WatchMaildir.pm index 003baec9..7803b58a 100644 --- a/lib/PublicInbox/WatchMaildir.pm +++ b/lib/PublicInbox/WatchMaildir.pm @@ -10,9 +10,8 @@ use PublicInbox::MIME; use PublicInbox::Spawn qw(spawn); use PublicInbox::InboxWritable; use File::Temp 0.19 (); -use PublicInbox::Filter::Base; +use PublicInbox::Filter::Base qw(REJECT); use PublicInbox::Spamcheck; -*REJECT = *PublicInbox::Filter::Base::REJECT; *maildir_path_load = *PublicInbox::InboxWritable::maildir_path_load; sub new { |