We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 650118b commit 1d36379Copy full SHA for 1d36379
src/Message.php
@@ -589,7 +589,7 @@ protected function fetchAttachment(Part $part) {
589
$oAttachment = new Attachment($this, $part);
590
591
if ($oAttachment->getName() !== null && $oAttachment->getSize() > 0) {
592
- if ($oAttachment->getId() !== null) {
+ if ($oAttachment->getId() !== null && $this->attachments->offsetExists($oAttachment->getId())) {
593
$this->attachments->put($oAttachment->getId(), $oAttachment);
594
} else {
595
$this->attachments->push($oAttachment);
0 commit comments