MailScanner Digest, Vol 52, Issue 24
Bruce R. Littlefield
brucel at eece.maine.edu
Fri Apr 23 18:52:00 IST 2010
On 04/23/2010 03:44 AM, mailscanner-request at lists.mailscanner.info wrote:
> Message: 13
> Date: Thu, 22 Apr 2010 17:12:12 +0100
> From: Julian Field<MailScanner at ecs.soton.ac.uk>
> Subject: Re: Dangerous content detection with "file" command
> To: MailScanner discussion<mailscanner at lists.mailscanner.info>
> Message-ID:
> <EMEW3|330fa99a6dd947572445d29be9115541m3LHCG0bMailScanner|ecs.soton.ac.uk|4BD0755C.4050208 at ecs.soton.ac.uk>
>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>
>
> On 21/04/2010 15:51, Bruce R. Littlefield wrote:
>>> >>
>>> >> The diffs for SweepOther.pm are as follows:
>>> >>
>>> >> 410c410
>>> >> < $FileTypes{$1}{$2} = $3 if /^([^\/]+)\/([^:]+):\s*(.*)$/;
>>> >> ---
>>>> >>> $FileTypes{$1}{$2} = $3 if /^([^\/]+)\/([^:]+):\s*([^,]*),/;
>>> >>
>> > Did this ever get addressed? I checked the latest Beta and
>> > SweepOther.pm still has the earlier code. I ran into the same problem
>> > on a Fedora 11 server running MailScanner 4.79.11-1 RPM with sendmail,
>> > spamassassin, and clamd. I found this change to be quite beneficial.
>> > Is it in the queue?
> That patch won't work if there is*not* a comma in the output of the
> "file" command.
> What I would recommend you try instead is this:
> $FileTypes{$1}{$2} = $3 if /^([^\/]+)\/([^:]+):\s*([^,]*)/;
>
> Please try that and get back to me to let me know if it works.
> For now, please email me atmailscanner at ecs.soton.ac.uk rather than post
> to the list.
> If my suggested fix works, I'll release a new beta containing it.
>
> Jules
>
Jules:
The new code worked correctly on the test cases I had here. It looks
like it is just the ticket. Thanks.
-Bruce
Bruce R. Littlefield Systems Manager/Lecturer
Tel: (207) 581-2238 Electrical and Computer Engineering
Fax: (207) 581-4531 University of Maine
brucel at eece.maine.edu 210 Barrows Hall
http://www.eece.maine.edu Orono, Maine 04469-5708
"Mastering MATLAB 7" (ISBN 0-13-143018-1)
http://www.eece.maine.edu/mm mm at eece.maine.edu
More information about the MailScanner
mailing list