Possible BUG with the Script FileType
mkettler at EVI-INC.COM
Thu Apr 14 19:30:36 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. ]
Mailing List wrote:
>MailScaner 4.38.10 and MailScanner 4.40.11
>Sending an EPS file thru when the filetype check denies script files
>blocks the file.
>My rough guess is that MailScanner parses the output of the file command
>and finds the letters "script" and interprets it as such.
Since the second field in filetypes.rules.conf is a regular expression
"script" will definitely match "Postscript". Regular expressions are by
nature a substring search, not an exact match.
Ditto applies to filename.rules.conf, which is why you see ^ and $ in
most of the rules there, to force it to be a whole-line match on the
If you want to avoid the problem in filetypes you can't use the ^ and $
trick, as there's other text on the line. Instead you could change it to
\bscript\b, which will require word boundaries. However, you won't match
any other all-one-word script names. Another option would be adding an
allow word for postscript before the deny rule for script.
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner