Nicklas,
> I'd like to allow certain file extensions sent in a known .zip file.
> e.g. Base rules tells amavisd to block .exe files. Exceptions to this
> rule should apply if a .zip file named "safe.zip" is found.
Order a list like this:
block whatever is disallowed unconditionally,
[ qr'^sa
lau den 05.11.2005 Klokka 08:22 (-0700) skreiv Gary V:
> [ qr'.\.(doc|ppt|xls|pdf)$'i => 0 ], # allow these before we ban any
> # more stuff (notably archives)
> qr'.\.(zip|rar)$'i, # more banned file
Nicklas wrote:
> Base rules tells amavisd to block .exe files. Exceptions to this rule should
> apply if a .zip file named "safe.zip" is found.
As Mark said:
>> Sure, just place a rule which permits a specific name before
>> rules that would block it, e.g.:
>>
>> $banned_filename_re = new_RE(
>>
> Gary wrote:
>
> > [ qr'.\.(doc|ppt|xls|pdf)$'i => 0 ], # allow these before
> we ban any
> > # more stuff (notably
> archives)
>
> > qr'.\.(zip|rar)$'i, # more banned file
> names go here
>
> I ha
Gary wrote:
> [ qr'.\.(doc|ppt|xls|pdf)$'i => 0 ], # allow these before we ban any
> # more stuff (notably archives)
> qr'.\.(zip|rar)$'i, # more banned file names go here
I have so far arrived at (doc
Nicklas wrote:
>> Nicklas,
>>
>> > Is there a somehow "simple" way to let a file pass through
>> the rules.
>> > I'd like a known filename to to simply pass these checks.
>>
>> Sure, just place a rule which permits a specific name before
>> rules that would block it, e.g.:
>>
>> $banned_file
> Nicklas,
>
> > Is there a somehow "simple" way to let a file pass through
> the rules.
> > I'd like a known filename to to simply pass these checks.
>
> Sure, just place a rule which permits a specific name before
> rules that would block it, e.g.:
>
> $banned_filename_re = new_RE(
> [ qr
Nicklas,
> Is there a somehow "simple" way to let a file pass through the rules. I'd
> like a known filename to to simply pass these checks.
Sure, just place a rule which permits a specific name
before rules that would block it, e.g.:
$banned_filename_re = new_RE(
[ qr'^secret\.exe$' => 0 ],
Is there a somehow "simple" way to let a file pass through the rules. I'd
like a known filename to to simply pass these checks.
Thanks,
Nicklas B
---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App S