]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Filter/Base.pm
No ext_urls
[public-inbox.git] / lib / PublicInbox / Filter / Base.pm
index 052cd3328aa66a470a9ddb19845edca3a1dcc4ce..00189fd962230ccae4097b5bd7831e152a80650b 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2016-2019 all contributors <meta@public-inbox.org>
+# Copyright (C) 2016-2021 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 #
 # base class for creating per-list or per-project filters
@@ -6,15 +6,16 @@ package PublicInbox::Filter::Base;
 use strict;
 use warnings;
 use PublicInbox::MsgIter;
-use constant MAX_MID_SIZE => 244; # max term size - 1 in Xapian
+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] ***" }
 
 our %DEFAULTS = (
        reject_suffix => [ qw(exe bat cmd com pif scr vbs cpl zip swf swfl) ],
-       reject_type => [ 'text/html:'.No('HTML'), 'text/xhtml:'.No('HTML'),
+       reject_type => [
                'application/vnd.*:'.No('vendor-specific formats'),
-               'image/*:'.No('images'), 'video/*:'.No('video'),
+               'video/*:'.No('video'),
                'audio/*:'.No('audio') ],
 );
 our $INVALID_FN = qr/\0/;