about summary refs log tree commit homepage
path: root/lib/PublicInbox/Filter/Base.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-12-31 10:30:12 +0000
committerEric Wong <e@80x24.org>2020-01-01 07:50:45 +0000
commita7d4f457ec2b4531b3aaeb6cef1383bbda5b431a (patch)
tree149f48424932509f9374191e2af441a2695cc577 /lib/PublicInbox/Filter/Base.pm
parent8de49b2d3097e294650b1ee1554f45c6d2d29d67 (diff)
downloadpublic-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/Filter/Base.pm')
-rw-r--r--lib/PublicInbox/Filter/Base.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/Filter/Base.pm b/lib/PublicInbox/Filter/Base.pm
index 7a0c720f..81adab2a 100644
--- a/lib/PublicInbox/Filter/Base.pm
+++ b/lib/PublicInbox/Filter/Base.pm
@@ -6,6 +6,8 @@ package PublicInbox::Filter::Base;
 use strict;
 use warnings;
 use PublicInbox::MsgIter;
+use parent qw(Exporter);
+our @EXPORT_OK = qw(REJECT); # we may export IGNORE if/when needed
 
 sub No ($) { "*** We only accept plain-text mail, No $_[0] ***" }