Skip to content

Commit

Permalink
ContentId based attachment key calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Aug 31, 2019
1 parent 1abe83b commit c09a23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpImap/Mailbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ public function downloadAttachment($dataInfo, $params, $partStructure, $mailId,
$fileName = $fileName;
}

$attachmentId = sha1($fileName);
$attachmentId = sha1($fileName.$partStructure->id);

$attachment = new IncomingMailAttachment();
$attachment->id = $attachmentId;
Expand Down

0 comments on commit c09a23c

Please sign in to comment.