"[" string *("," string) "]" / string
When matching patterns, it is frequently convenient to match against groups of strings instead of single strings. For this reason, a list of strings is allowed in many tests, implying that if the test is true using any one of the strings, then the test is true. Implementations are encouraged to use short-circuit evaluation in these cases.
For instance, the test
header :contains ["To", "Cc"]
["email@example.com", "firstname.lastname@example.org"] is true if either the
To header or Cc header of the input message contains either of the
e-mail addresses "email@example.com" or "firstname.lastname@example.org".
Conversely, in any case where a list of strings is appropriate, a
single string is allowed without being a member of a list: it is
equivalent to a list with a single member. This means that the test
exists "To" is equivalent to the test
Core : Requires no import statement