Skip to content

Commit c09a23c

Browse files
committed
ContentId based attachment key calculation
1 parent 1abe83b commit c09a23c

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);
1096+
$attachmentId = sha1($fileName.$partStructure->id);
10971097

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

0 commit comments

Comments
 (0)