ANNOUNCE: Stable 4.29.7 released

Julian Field mailscanner at ecs.soton.ac.uk
Fri Apr 2 09:13:12 IST 2004


At 22:13 01/04/2004, you wrote:
> > -----Original Message-----
> > From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]On
> > Behalf Of Julian Field
> > Sent: Thursday, April 01, 2004 10:20 AM
> > To: MAILSCANNER at JISCMAIL.AC.UK
> > Subject: Re: ANNOUNCE: Stable 4.29.7 released
> >
> >
><snip>
> >
> > I need to test lots of files and I can detect zip files by just
> > looking at
> > the first 4 bytes, which is *way* faster than running the file
> > command and
> > parsing all its output.
> > --
>
>Need to note that SFX zips do not have the same signature in the first four
>bytes since, of course, that would be the exe header area. I thought about
>that while I was repatching Message.pm for my password-protected rar stuff.
>
>next unless $buffer eq "PK\003\004" should probably be
>next unless $buffer eq "PK\003\004" || $part =~ /exe$/i if you still want to
>catch SFX zips.

Good point, thanks for that. I will probably try to find the magic text
that signifies Windows exes instead of relying on the filename.
--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654



More information about the MailScanner mailing list