Skip to content

Commit

Permalink
Merge pull request #378 from hugovink96/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebbo94BY authored Sep 5, 2019
2 parents df0798f + 0808c39 commit fe5bed8
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 fe5bed8

Please sign in to comment.