Community Forum

Extension to "Regex" option of an email filter condition

Highlighted
Regular Visitor

Extension to "Regex" option of an email filter condition

     In order to better support the "Regex" option of an email filter condition, the following extension would be helpful: “RegexURL”. 

     The idea of RegexURL is that it would specify a URL which references a file containing regular expressions, just as the Unix/Linux grep utilities allow for the specification of a file containing regular expressions.  It would also allow for the specification of an optional default regular expression to be used if the file is inaccessible or contains regular expression errors. 
     The general syntax of RegexURL would be
          RegexURL <url_file_re> <default_re_if_file_errors>
where
     <url_file_re>
specifies the URL of the file containing regular expressions and
     <default_re_if_file_errors>
specifies a default regular expression to be used if the file is inaccessible or contains regular expression errors.  If <default_re_if_file_errors> is not specified, then this would be interpreted to mean that if the file containing regular expressions is inaccessible or contains regular expression errors, the condition would be skipped because it cannot be evaluated.