Allof

Syntax

allof <tests: test-list>

Description

The allof test performs a logical AND on the tests supplied to it.

Example

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

Module

Core : Requires no import statement

Resources

RFC3028