From 5d7d15067b263bd6f7a2f2d4d15a6bfe49021588 Mon Sep 17 00:00:00 2001
From: Jared Hancock <gravydish@gmail.com>
Date: Fri, 20 Jul 2012 16:36:10 -0500
Subject: [PATCH] Allow filtering based on email address

---
 include/class.filter.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/class.filter.php b/include/class.filter.php
index a749e5eae..44dcacc4b 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']));
         }
     }
-- 
GitLab