From 85cf4e117145c847ad74ff817d02f83ded948e27 Mon Sep 17 00:00:00 2001 From: Andy Kopciuch Date: Thu, 11 Jun 2020 11:28:43 -0600 Subject: [PATCH] Added 'XML' to the array of static types for attachments. If an attachment was on an email of content-type text/xml as opposed to application/octet-stream, it was being left out of the attachments of the message --- ImapClient/TypeAttachments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ImapClient/TypeAttachments.php b/ImapClient/TypeAttachments.php index 26f85e5..0fbc192 100644 --- a/ImapClient/TypeAttachments.php +++ b/ImapClient/TypeAttachments.php @@ -19,7 +19,7 @@ class TypeAttachments * * @var array */ - private static $types = array('JPEG', 'PNG', 'GIF', 'PDF', 'X-MPEG', 'MSWORD', 'OCTET-STREAM', 'TXT', 'TEXT', 'MWORD', 'ZIP', 'MPEG', 'DBASE', 'ACROBAT', 'POWERPOINT', 'BMP', 'BITMAP'); + private static $types = array('JPEG', 'PNG', 'GIF', 'PDF', 'X-MPEG', 'MSWORD', 'OCTET-STREAM', 'TXT', 'TEXT', 'XML', 'MWORD', 'ZIP', 'MPEG', 'DBASE', 'ACROBAT', 'POWERPOINT', 'BMP', 'BITMAP'); /** * Get the allowed types.