diff --git a/src/Fetch/Attachment.php b/src/Fetch/Attachment.php index 613afda..431153f 100644 --- a/src/Fetch/Attachment.php +++ b/src/Fetch/Attachment.php @@ -218,6 +218,9 @@ class Attachment $streamFilter = null; } + // Fix an issue causing server to throw an error + // See: https://github.com/tedious/Fetch/issues/74 for more details + $fetch = imap_fetchbody($this->imapStream, $this->messageId, $this->partId ?: 1, FT_UID); $result = imap_savebody($this->imapStream, $filePointer, $this->messageId, $this->partId ?: 1, FT_UID); if ($streamFilter) {