Test Lists

Syntax

"(" test *("," test) ")"

Description

Some tests ("allof" and "anyof", which implement logical "and" and logical "or", respectively) may require more than a single test as an argument. The test-list syntax element provides a way of grouping tests.

Example

if anyof (not exists ["From", "Date"],
      header :contains "from" "fool@example.edu") {
   discard;
}

Module

Core : Requires no import statement

Resources

RFC3028