Skip to content

Commit fe5bed8

Browse files
authored
Merge pull request #378 from hugovink96/patch-1
2 parents df0798f + 0808c39 commit fe5bed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpImap/Mailbox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ public function downloadAttachment($dataInfo, $params, $partStructure, $mailId,
10931093
$fileName = $fileName;
10941094
}
10951095

1096-
$attachmentId = sha1($fileName.$partStructure->id);
1096+
$attachmentId = sha1($fileName . ($partStructure->ifid ? $partStructure->id : ""));
10971097

10981098
$attachment = new IncomingMailAttachment();
10991099
$attachment->id = $attachmentId;

0 commit comments

Comments
 (0)