An Example of Modifiers Usage

Testing for potential fraud orders - An Example of Modifiers Usage.

Example Description

This example shows how to use Modifiers. These components allows you to modify a message, it's parts and text sources in different ways. In this example Block Modifier and Line Modifier are used.

To load this example, import the rules list rules.txt from Examples\Modifiers folder.

This example is a solution of a task of purchaser data checking which are parsed from RegNow Orders. The IP and e-mail of purchaser are parsed and checked. If IP is over proxy-server or e-mail is free then message priority will be changed to high. The checking's are made with help of online services for which queries will be done with help of HTTP Reader component.

On receiving RegNow order, IP and e-mail are parsed from it. Parsed data are checked with online services using HTTP Reader component, the replies from online services are stored in AnswerIP and AnswerEmail variables and are checked by following two conditions. The result will be inserted into the message body with Block Modifier. If IP is proxy-based or e-mail is free then message priority will be changed to high using Line Modifier.

Rule Example Description

Filtering

There is the Sender Name Filter that filters all messages except debug messages from the example.

Processing

IP and e-mail extraction into IP and Email variables.

Data checking by online services using HTTP Reader component.

Checking results of HTTP queries and saving them in IPCheck and EmailCheck variables.

Inserting IPCheck and EmailCheck into the begin of Body with Block Modifier component.

Checking if high priority have to be set.

Setting of the message priority to high with Line Modifier component.

Debug Messages

To check rule use messages from example folder. You can check the rule with these messages using RFC822 Account.

© 2017 Mediatwins s.r.o. All rights reserved.