// The Bogo class represents a spam filtering level in plat/al architecture.
class Bogo
{
- private static $states = array(
+ public static $states = array(
0 => 'default',
1 => 'let_spams',
2 => 'tag_spams',
public $display_email;
public $domain;
public $action;
+ public $filter_level;
// Redirection status properties.
public $active;
$this->$status = ($status == $row['flags']);
}
$this->sufficient = ($this->type == 'smtp' || $this->type == 'googleapps');
+ $this->filter_level = ($this->type == 'imap') ? null : array_search($this->action, Bogo::$states);
$this->user = &$user;
}