Skip to content
Snippets Groups Projects
Commit 62bdcb2b authored by Peter Rotich's avatar Peter Rotich
Browse files

Make supported matches generic + double check filter target on email ID matches

parent 0816fb9e
No related branches found
No related tags found
No related merge requests found
...@@ -246,7 +246,9 @@ class Filter { ...@@ -246,7 +246,9 @@ class Filter {
$match = false; $match = false;
# Respect configured filter email-id # Respect configured filter email-id
if ($this->getEmailId() && $this->getEmailId() != $info['emailId']) if ($this->getEmailId()
&& !strcasecmp($this->getTarget(), 'Email')
&& $this->getEmailId() != $info['emailId'])
return false; return false;
foreach ($this->getRules() as $rule) { foreach ($this->getRules() as $rule) {
...@@ -303,10 +305,10 @@ class Filter { ...@@ -303,10 +305,10 @@ class Filter {
} }
/* static */ function getSupportedMatches() { /* static */ function getSupportedMatches() {
return array( return array(
'name'=> "Sender's Name", 'name'=> 'Name',
'email'=> "Sender's Email", 'email'=> 'Email',
'subject'=> 'Email Subject', 'subject'=> 'Subject',
'body'=> 'Email Body/Text' 'body'=> 'Body/Text'
); );
} }
/* static */ function getSupportedMatchTypes() { /* static */ function getSupportedMatchTypes() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment