4 ms·
If you run Amavis you can add a MIME type to the $banned_filename_re in a conf file (on debian based derivatives you'll normally find that in /etc/amavis/conf.d
by tankenmate 9y ago
If you run Amavis you can add a MIME type to the $banned_filename_re in a conf file (on debian based derivatives you'll normally find that in /etc/amavis/conf.d/20-debian_defaults).
qr'^application/amp+html$'i,
is what I use.
If you want to put it in a separate file (such as a local config file) then you can just
push(@$banned_filename_re,qr'^application/amp+html$'i);
- rav 9y agoIsn't the plus sign a special character in Perl regexes? That is, wouldn't you need to use this instead: qr'^application/amp\+html$'i,
- tankenmate 9y agoYou're right, thanks! I still forget sometimes the differences between BRE, SRE, and ERE (mostly due to vim defaulting one thing and perl the other).