[prev in list] [next in list] [prev in thread] [next in thread]
List: amavis-user
Subject: Re: False positives "text/plain,.exe"
From: Tilman Schmidt <tschmidt () cardtech ! de>
Date: 2016-04-26 16:59:40
Message-ID: 20160426170141.BBE6A3DF1D () de ! postfix ! org
[Download RAW message or body]
On 26.04.2016 17:46, Mark Martinec wrote:
>
> The "text/plain,.exe" means the declared MIME part was text/plain,
> but the file(1) utility decided that it is some kind of executable.
>
> Your sample (decoded and given to a file(1) utility) here reports:
>
> Python script, Non-ISO extended-ASCII text executable
>
> and an entry in the @$map_full_type_to_short_type_re list
> matches /\bexecutable\b/i, returning the '.exe':
>
> [qr/\bexecutable\b/i => 'exe'],
>
> Perhaps an entry like the following should be added to the
> default @$map_full_type_to_short_type_re list:
>
> [qr/Python script, .*text executable\b/ => 'txt'],
>
> or the existing one relaxed:
>
> < [qr/\bscript text executable\b/ => 'txt'],
>> [qr/\bscript\b.*text executable\b/ => 'txt'],
>
> Will do this for the 2.11 release, thanks for the report
> and the sample.
In the meantime I have added to my local config the lines:
unshift @map_full_type_to_short_type_maps, \new_RE(
[qr/\bscript\b.*text executable\b/i => 'txt'],
);
Seems to work fine so far.
Thanks again,
Tilman
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic