Skip to content
Snippets Groups Projects
Commit a68d817c authored by Jared Hancock's avatar Jared Hancock
Browse files

Respect configured email-id in email filtering

parent f59d94b2
No related branches found
No related tags found
No related merge requests found
......@@ -71,6 +71,10 @@ class Filter {
return $this->ht['execorder'];
}
function getEmailId() {
return $this->ht['email_id'];
}
function isActive(){
return ($this->ht['isactive']);
}
......@@ -231,6 +235,10 @@ class Filter {
"dn_contain"=> array("strpos", false)
);
$match = false;
# Respect configured filter email-id
if ($email['emailId'] && $this->getEmailId()
&& $this->getEmailId() != $email['emailId'])
return false;
foreach ($this->getRules() as $rule) {
list($func, $pos, $neg) = $how[$rule['h']];
# TODO: convert $what and $rule['v'] to mb_strtoupper and do
......@@ -603,7 +611,7 @@ class EmailFilter {
} else {
$this->build(
$this->quickList($email['email'], $email['name'],
$email['subject']));
$email['subject'], $email['emailId']));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment