diff --git a/include/class.filter.php b/include/class.filter.php index 696cd1025f04d6be628218ae09357f1e731a2f0f..ce7d7d92cb273705bc458e32e6c7dd93cf8668e7 100644 --- a/include/class.filter.php +++ b/include/class.filter.php @@ -246,7 +246,9 @@ class Filter { $match = false; # 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; foreach ($this->getRules() as $rule) { @@ -303,10 +305,10 @@ class Filter { } /* static */ function getSupportedMatches() { return array( - 'name'=> "Sender's Name", - 'email'=> "Sender's Email", - 'subject'=> 'Email Subject', - 'body'=> 'Email Body/Text' + 'name'=> 'Name', + 'email'=> 'Email', + 'subject'=> 'Subject', + 'body'=> 'Body/Text' ); } /* static */ function getSupportedMatchTypes() {