Example 3

Top  Previous  Next

In this example, we're scanning for keywords and keyphrases that indicate a message shouldn't be sent. If the filter finds any of the keywords or keyphrases, it will filter those messages from going through. For this example, we've configured the filter to look for the key phrases "Return from Alarm" and "Alarm Acknowledged" as well as potential partial matches.

 

<InputFile>

<Name>

        Parameter

</Name>

<Delete>

        True

</Delete>

</InputFile>

 

<Debug>

True

</Debug>

 

<OutputFile>

<Name>

        c:\PageGateData\output\%InputFileNameBase%.asc

</Name>

</OutputFile>

 

 

<Filter>

<Comment>look for Return From Alarm</Comment>

<Search>

        <Section>

                All

        </Section>

        <Type>

                Literal

        </Type>

        <Text>

                Return From Alarm

        </Text>

</Search>

<Replace>

<Text>

</Text>

</Replace>

<Abort>

True

</Abort>

</Filter>

 

<Filter>

<Comment>look for Partial Phrases of Return From Alarm</Comment>

<Search>

        <Section>

                All

        </Section>

        <Type>

                Literal

        </Type>

        <Text>

                Retu*

        </Text>

</Search>

<Replace>

<Text>

</Text>

</Replace>

<Abort>

True

</Abort>

</Filter>

 

<Filter>

<Comment>look for Alarm Block Acknowledged</Comment>

<Search>

        <Section>

                All

        </Section>

        <Type>

                Literal

        </Type>

        <Text>

                Alarm Block Acknowledged

        </Text>

</Search>

<Replace>

<Text>

</Text>

</Replace>

<Abort>

True

</Abort>

</Filter>

 

<Filter>

<Comment>look for Partial "Alarm Block Acknowledged" phrases</Comment>

<Search>

        <Section>

                All

        </Section>

        <Type>

                Literal

        </Type>

        <Text>

                Block

        </Text>

</Search>

<Replace>

<Text>

</Text>

</Replace>

<Abort>

True

</Abort>

</Filter>