User Tools

Site Tools


reference:spamrules_statement_include

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

reference:spamrules_statement_include [2018/11/14 10:45] (current)
Line 1: Line 1:
 +======Spam Filter Rules: Include======
 +^Statement ​ |Include |
 +^Version ​ |2.1.7+ |
 +^Purpose ​ |Including other files within the spam rules |
  
 +To include another file within the spam rules, insert a line saying
 +  ''​Include <​filename to include>''​
 +
 +There should not be any quotes around the filename to include, even if it contains spaces. Note that all files are within the same '​scope',​ so variables defined in one file will be visible within all subsequent included files.
 +
 +Include statements can be included anywhere, and the existing '​state'​ of the language parser is carried into the included file. For instance, if the parser is currently processing a '​BulkScan'​ sequence, the sequence will carry on into the included file.
 +
 +Included files can be nested to a level of 10 deep.
 +
 +=====Example=====
 +<​code>​
 +include myfile.txt
 +</​code>​
reference/spamrules_statement_include.txt ยท Last modified: 2018/11/14 10:45 (external edit)