<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<blockquote type="cite"
cite="mid:c9256290-4545-8d93-dc64-18f813ded0d4@nonlontano.it">simply
I wish allow some specific extension of file (scr) for some users
only, and keep default values for all without remove extension scr
in $banned_filename_re
</blockquote>
<p>Should be possible in principle. $banned_filename_re is used
indirectly. In a default setup, more or less as</p>
<p>
<blockquote type="cite">
<pre>@banned_filename_maps = ({'.' => [$banned_filename_re]});</pre>
</blockquote>
Try the following:<br>
</p>
<pre><blockquote type="cite">$banned_filename_re = ...
my $allow_scr = [
new_RE([qr'.\.scr$' => 0]),
$banned_filename_re,
];
@banned_filename_maps = (
{
'<a class="moz-txt-link-abbreviated" href="mailto:special1@domain.tld">special1@domain.tld</a>' => $allow_scr,
'<a class="moz-txt-link-abbreviated" href="mailto:special2@domain.tld">special2@domain.tld</a>' => $allow_scr,
'domain2.tld' => $allow_scr,
'.' => [$banned_filename_re],
},
);
</blockquote></pre>
</body>
</html>