This shows you the differences between two versions of the page.
Previous revision | |||
— | reference:spamrules_statement_definesetting [2018/11/14 10:45] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Spam Filter Rules: DefineSetting====== | ||
+ | ^Statement | ||
+ | ^Version | ||
+ | ^Purpose | ||
+ | The **DefineSetting** statement requires a name, default value and description, | ||
+ | DefineSetting "< | ||
+ | |||
+ | Defining settings like this allows the filter script to be customisable by the user without them having to edit the script itself, as the rule settings can be modified via '' | ||
+ | |||
+ | Settings can be referred to in the script by using the variable name **${setting_''< | ||
+ | |||
+ | |||
+ | =====Examples===== | ||
+ | Defining a setting | ||
+ | < | ||
+ | DefineSetting Redirect "" | ||
+ | </ | ||
+ | |||
+ | Entering a setting value into the log file | ||
+ | < | ||
+ | #This logs the ' | ||
+ | Log " | ||
+ | </ |