File Type enforcement feature

Matt Hampton matt at CODERS.CO.UK
Fri Aug 26 23:32:28 IST 2005

    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]


I have been toying with the idea of coding an extentension for 
MailScanner which is a combination of the filetypes and filename feature.

A third configuration file would be included which  would be of the 
syntax: extension, regular expression, description


avi   AVI Avi Movie
pdf   PDF document Adobe Acrobat PDF Document

When MailScanner encouters a file with .avi extension which doesn't 
produce "AVI" from the "file" output it would do the normal 

I am guessing that I can probably just munge the existing 
to do this - and looking at the code I reckon it won't be too hard to 

Can anyone see a use for this?



------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki ( and
the archives (

Support MailScanner development - buy the book off the website!

More information about the MailScanner mailing list