Skip to content

Commit

Permalink
Possible fix issue #377
Browse files Browse the repository at this point in the history
fix #377
  • Loading branch information
finch-h authored Sep 5, 2019
1 parent df0798f commit 0808c39
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.$partStructure->id);
$attachmentId = sha1($fileName . ($partStructure->ifid ? $partStructure->id : ""));

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

0 comments on commit 0808c39

Please sign in to comment.