filtering file types vs. extensions
Julian Field
mailscanner at ecs.soton.ac.uk
Fri Jun 6 18:02:04 IST 2003
Does anyone know of a Perl module that uses the magic file? I would very
much like to avoid having to write this, but I don't want to have to crank
up the file command for every message batch if I can avoid it.
Also, there would need to be some way of creating a list of "file" outputs
to expected extensions, or something like that. There needs to be a useful
way of processing the "file" output.
What would you like to be able to do?
1. Block specific file types (you would have to specify the "file" output
strings you are looking for.
2. Block file types that don't match their extensions (this could only be
done for a known subset of "file" outputs).
3. Add a "file" output specifier to each rule in filename.rules.conf, so
that the rule matches if either the filename matches or the file type matches.
4. Any more ideas?
Your votes please....
At 16:35 06/06/2003, you wrote:
>That should be possible using the magic file and the logic that the file
>command uses (with that same file).
>
>See:
>man magic
>man file
>
>
>El 6 Jun 2003 a las 11:29, Bingham, Ryan escribió:
>
> > Hi Julian,
> >
> > This is just a feature question. Some of the commercial products
> > (Sybari's Antigen for Exchange comes to mind) that (try to) do what
> > MailScanner does have the ability to discern the file type even if the
> > extension does not match (e.g. spot a Windows executable file even if it
> > doesn't have an .exe extension).
> >
> > Is this something that would ever be possible with MailScanner?
> >
> > Thanks again for an awesome program!!
> >
> > Ryan
>
>
>--
>Mariano Absatz
>El Baby
>----------------------------------------------------------
>It is now proved beyond doubt that smoking is one
>of the leading causes of statistics.
> -- Fletcher Knebel
--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
More information about the MailScanner
mailing list