Skip to content

Commit

Permalink
Merge pull request #376 from nekufa/master
Browse files Browse the repository at this point in the history
ContentId based attachment key calculation
  • Loading branch information
barbushin authored Sep 4, 2019
2 parents 1abe83b + c09a23c commit df0798f
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 df0798f

Please sign in to comment.