Skip to content

Commit 1d36379

Browse files
https://github.com/Webklex/php-imap/pull/372
1 parent 650118b commit 1d36379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ protected function fetchAttachment(Part $part) {
589589
$oAttachment = new Attachment($this, $part);
590590

591591
if ($oAttachment->getName() !== null && $oAttachment->getSize() > 0) {
592-
if ($oAttachment->getId() !== null) {
592+
if ($oAttachment->getId() !== null && $this->attachments->offsetExists($oAttachment->getId())) {
593593
$this->attachments->put($oAttachment->getId(), $oAttachment);
594594
} else {
595595
$this->attachments->push($oAttachment);

0 commit comments

Comments
 (0)