Problem with filename ruleset for "Remove These Headers"

Julian Field mailscanner at ecs.soton.ac.uk
Wed Dec 1 13:29:43 GMT 2004


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

Mike wrote:

>>From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
>>Behalf Of Julian Field
>>
>>If it can work out what you mean without any filename matching, it will
>>do so. But as the header names are just arbitrary pieces of text, there
>>is no way for it to know what you meant.
>>
>>It's as intelligent as I could make it, but in this case there is no way
>>to tell.
>>
>>
>
>It seems a bit strange to be dependent on the ".rules" extension to determine if it's a file/ruleset. Isn't it possible to determine that it's a file when the argument of the option starts with "%rules-dir%", or "/", or whatever? Or maybe just a simple "[ -f <argument> ] && read-from-file" (obviously not in perl, but bash notation ;-)?
>
>
And for options which can take a filename? Or for options that take a
string which could start with "/" or could happen to be the name of a
file on your system? (e.g. Silent Viruses). There are lots of reasons
why this doesn't work in practice.

--
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
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

------------------------ 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 MAQ (http://www.mailscanner.biz/maq/) 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 mailing list