Problem with filename ruleset for "Remove These Headers"

Julian Field mailscanner at ecs.soton.ac.uk
Wed Dec 1 12:47:25 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:

>Hi,
>
>I have a problem with the "Remove These Headers" option. When I specify "Remove These Headers = X-Mozilla-Status: X-Mozilla-Status2:" in MailScanner.conf, everything works fine (i.e. headers /are/ removed as should be), however, when I specify a filename (such as "Remove These Headers = %rules-dir%/RemoveTheseHeaders", no headers whatsoever are being removed.
>
Try renaming RemoveTheseHeaders to RemoveTheseHeaders.rule
Then it should spot that you are putting in a ruleset filename. Without
that, there is no way to distinguish between the name of a header and
the name of a ruleset file.

> Even the most basic entry does not work at all:
>
>FromOrTo:       default X-Mozilla-Status: X-Mozilla-Status2:
>
>The %rules-dir% is set to the correct directory (since I use plenty of other rulesets) and the file "RemoveTheseHeaders" also exists with the same permissions as other rulesets. There should not be a problem there.
>
>Does anyone else use a filename as a ruleset for this option (and are headers being removed properly)? The reason for using a ruleset, is to differentiate between mail coming in from the Internet and from the LAN and removing different headers accordingly.
>
>I'm using the latest stable version of MailScanner: 4.35.9.
>
>
>

--
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