Skip to content

Commit

Permalink
Merge pull request #134 from orzilca/patch-1
Browse files Browse the repository at this point in the history
Fixed issue #74
  • Loading branch information
tedivm committed Jun 7, 2015
2 parents db525ae + 774cfb2 commit 129e457
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Fetch/Attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ public function saveAs($path)
$streamFilter = null;
}

// Fix an issue causing server to throw an error
// See: https://github.com/tedious/Fetch/issues/74 for more details
$fetch = imap_fetchbody($this->imapStream, $this->messageId, $this->partId ?: 1, FT_UID);
$result = imap_savebody($this->imapStream, $filePointer, $this->messageId, $this->partId ?: 1, FT_UID);

if ($streamFilter) {
Expand Down

0 comments on commit 129e457

Please sign in to comment.