From 24844473f64833f79fa490c77ebeeb40c1b20403 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Tue, 12 May 2015 22:05:32 -0500
Subject: [PATCH] oops: Fix typo handling collaborator emails

---
 include/class.ticket.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class.ticket.php b/include/class.ticket.php
index 6b54bb016..c31f155d6 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -1117,7 +1117,7 @@ class Ticket {
             // Skip all the other recipients of the message
             foreach ($entry->getAllEmailRecipients() as $R) {
                 foreach ($recipients as $R2) {
-                    if ($R2->getEmail() == ($R->mailbox.'@'.$R->hostname)) {
+                    if (0 === strcasecmp($R2->getEmail(), $R->mailbox.'@'.$R->host)) {
                         $skip[$R2->getUserId()] = true;
                         break;
                     }
-- 
GitLab