private function _tokenize_rule($content)
{
$result = NULL;
if (preg_match('/^(if|elsif|else)\\s+((true|not\\s+true|allof|anyof|exists|header|not|size|envelope|address|spamtest|virustest|date|currentdate)\\s+(.*))\\s+\\{(.*)\\}$/sm', trim($content), $matches)) {
list($tests, $join) = $this->_parse_tests(trim($matches[2]));
$actions = $this->_parse_actions(trim($matches[5]));
if ($tests && $actions) {
$result = array('tests' => $tests, 'actions' => $actions, 'join' => $join);
}
}
return $result;
}