External Text File Example

To search all new message Headers with conditions from external file "spam.rul" and to send to mailbox "spambox":

<Rule 1>H~:spam:spambox

Note: The reference to :spam is referring to an external file "spam.rul" that must exist in the same directory as the "rules.ima" file.

The external file "spam.rul" contains the following conditions

word1|word2|word3|word4|word5

Where word1 or word2 or word3 or word4 or word5 would return a true condition and the message would be moved to the "spambox" mailbox.

Important: A colon must precede the .rul file name (in this example, spambox). The IMail Server reads the rules.ima file and looks for the referenced spam.rul file at the same location as the rules.ima file.

Related Topics

Storing Search Text in an External Text File

Add/Edit Rule Condition