Skip to content

Commit df0798f

Browse files
authored
Merge pull request #376 from nekufa/master
ContentId based attachment key calculation
2 parents 1abe83b + c09a23c commit df0798f

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)