If you need to frequently update and distribute the delivery rules search text, you can use external text files to store the search text. External files were designed to allow frequent updating of rules without creating a new rule.
Important: The following rules are required for external rules:
1. The External Rule file must exist in the same directory as the "rules.ima"
or "orules.ima"
file.
2. The External Rule file when referenced in the rule must not include the ".rul"
file extension.
3. The External Rule file must have a file extension of ".rul"
Example:
(mortgage|loans|credit offer), where the pipes mean "or" and separate the conditions. Usage of the "and" condition is not permitted in a ".rul"
file. Also, the ".rul"
file must be located in the same directory as the "rules.ima"
or "orules.ima"
file.
To illustrate this, the administrator can use this method to catch mail from known spammers. The administrator might create a text file named "spam1.rul". Each time a new spammer address is discovered, the administrator can add it to the "spam1.rul
"
file. The "rules.ima"
or "orules.ima"
file can reference the text file named "spam.rul"
. The procedure for storing search text in an external file is the same for Inbound and Outbound rules. For more information, see External Text File Example and Rule Syntax.
To create a delivery rule that references an external text file:
".rul"
extension. Example: Select "rulefilename"
where "rulefilename"
is the name of the ".rul"
file you want to reference.
".rul"
file. Do not enter the file extension .rul because IMail will append it to the filename you enter.Related Topics