Discussion:
banned_filename_re expressions
(too old to reply)
Bill Measday
2016-05-05 22:41:06 UTC
Permalink
Hi,

I've tried searching for an answer to this, but it's pretty hard to
search for as you will see.

Could someone please explain to me in setting up banned_filename_re in
amavisd.conf why some entries have an "i" on the end.

For example:

qr'^\.(exe-ms|dll)$', # banned file(1) types,
rudimentary

doesn't, but

qr'.\.(pif|scr)$'i, # banned extensions -
rudimentary

does.

Obviously there is logic here, but I'm missing it. Perhaps it's a perl
issue (I'm no good at perl).

I couldn't see anything in the docs that helped me, and any search with
"i" in it is doomed to failure.

Thanks in advance,

Bill
Tilman Schmidt
2016-05-06 08:19:25 UTC
Permalink
Post by Bill Measday
Could someone please explain to me in setting up banned_filename_re in
amavisd.conf why some entries have an "i" on the end.
qr'^\.(exe-ms|dll)$', # banned file(1) types,
rudimentary
doesn't, but
qr'.\.(pif|scr)$'i, # banned extensions -
rudimentary
does.
The "i" is perlish for "ignore case", ie. a case insensitive match.
Loading...