|
NAME
SYNOPSIS
DESCRIPTION
Supported options are as follows:
CONFIGURATIONThe configuration file contains a list of rules that when matched will cause the listed actions specified by that rule to be performed. Rules are evaluated in the order they appear and evaluation will continue regardless of the success or failure of the previous rule to match, unless Halt was given as one of the rules actions. Each rule is made up of two parts, the rule body which contains all the conditions of the rule and is contained between an opening { and closing } bracket followed by a list of comma separated actions to perform if the rule matches. The rule is terminated by a semi-colon. { rule_body } action_list; The rule body consists of one or more conditions which are separated by the Or and And key words. Conditions can also be grouped between opening ( and closing ) brackets. { condition1 or (condition2 and condition3) } Each condition is made up of three values, the field to match against, the part of the field to match against and finally the string to match. Valid fields are Sender, From or To and the parts that can be matched are Start, End, Contains or Is. The string to match can be quoted and honours backslash \ escapes, if not quoted it is white space delimited. The string match will be case insensitive except in the case of Sender, since usernames are case sensitive while mail addresses are not. All conditions may be negated using the ! character before them, this includes brackets. { Field Part String } Fields:
Parts:
There are also two special conditions that need no part or string:
The action list consists of one or more actions separated by commas, each action has a type and a single string containing all arguments. The rule is terminated after the last action by a semi-colon. There must be at least one action. action1_type arguments, action2_type arguments; Actions:
Action arguments support token substitution. Tokens are in UPPER CASE and marked by a % symbol at the start and end. All tokens support the addition of .USER or .DOMAIN to substitute only that part of the address, by default they insert the whole address. You may use an unlimited amount of tokens. Tokens:
*Note: Both the TO and ALLTO tokens require at least one To condition to be tested and matched by the rule they are part of, otherwise they will be empty. So an example rule may be as follows: { Sender Starts "bob" Or From Contains "bob" and (To Ends "@domain.com" Or To Ends "@other.com") } Store In /home/%SENDER.USER%/mail.mbox, Halt; Please take a look at the sample configuration file for more examples. AuthorsDancing Fortune Software - http://www.dancingfortune.com
|