From 6caf55f332975961b66adc71dcdfce0974b96f89 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Fri, 27 Sep 2013 20:20:14 +0000
Subject: [PATCH] Accept attachments from email messages

if the References or In-Reply-To header matches in a way that continues a
ticket's thread, include the attachments in the thread if allowed by the
system settings.
---
 include/class.thread.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/class.thread.php b/include/class.thread.php
index ba9332ae4..8f108d705 100644
--- a/include/class.thread.php
+++ b/include/class.thread.php
@@ -528,6 +528,9 @@ Class ThreadEntry {
             'reply_to' => $this,
         );
 
+        if (isset($mailinfo['attachments']))
+            $vars['attachments'] = $mailinfo['attachments'];
+
         $body = $mailinfo['message'];
 
         // Disambiguate if the user happens also to be a staff member of the
-- 
GitLab