diff --git a/include/class.filter.php b/include/class.filter.php index a749e5eaeabc6c08d0a44d29fa30782511313bac..44dcacc4b61bda5cb729663aae501dc0eb89fb62 100644 --- a/include/class.filter.php +++ b/include/class.filter.php @@ -216,7 +216,7 @@ class Filter { */ function matches($email) { $what = array( - "email" => $email['from'], + "email" => $email['email'], "subject" => $email['subject'], # XXX: Support reply-to too ? "name" => $email['name'], @@ -567,7 +567,7 @@ class EmailFilter { * calls, etc). * * $email is an ARRAY, which has valid keys - * *from - email address of sender + * *email - email address of sender * name - name of sender * subject - subject line of the email * email-id - id of osTicket email recipient address @@ -586,7 +586,7 @@ class EmailFilter { $this->build($this->getAllActive()); } else { $this->build( - $this->quickList($email['from'], $email['name'], + $this->quickList($email['email'], $email['name'], $email['subject'])); } }