From fca6541c83482c0eef211e41e6bd0b1f81a7eedf Mon Sep 17 00:00:00 2001 From: alsoft10 Date: Tue, 19 Dec 2023 13:00:11 +0530 Subject: [PATCH] FIX#27166 --- htdocs/emailcollector/lib/emailcollector.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/emailcollector/lib/emailcollector.lib.php b/htdocs/emailcollector/lib/emailcollector.lib.php index 60611c35841..51190e768ca 100644 --- a/htdocs/emailcollector/lib/emailcollector.lib.php +++ b/htdocs/emailcollector/lib/emailcollector.lib.php @@ -117,7 +117,7 @@ function getDParameters($part) */ function getAttachments($jk, $mbox) { - $structure = imap_fetchstructure($mbox, $jk); + $structure = imap_fetchstructure($mbox, $jk, FT_UID); $parts = getParts($structure); $fpos = 2; $attachments = array(); @@ -153,7 +153,7 @@ function getAttachments($jk, $mbox) */ function getFileData($jk, $fpos, $type, $mbox) { - $mege = imap_fetchbody($mbox, $jk, $fpos); + $mege = imap_fetchbody($mbox, $jk, $fpos, FT_UID); $data = getDecodeValue($mege, $type); return $data;