Skip to content

Commit

Permalink
Fix headers parsing encoding
Browse files Browse the repository at this point in the history
ref #201
  • Loading branch information
barbushin committed Oct 20, 2017
1 parent 150c5c0 commit 8c1d819
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 @@ -505,7 +505,7 @@ public function getRawMail($msgId, $markAsSeen = true) {
*/
public function getMailHeader($mailId) {
$headersRaw = $this->imap('fetchheader', [$mailId, FT_UID]);
$head = $this->imap('rfc822_parse_headers', $headersRaw, false);
$head = imap_rfc822_parse_headers($headersRaw);

$header = new IncomingMailHeader();
$header->headersRaw = $headersRaw;
Expand Down

0 comments on commit 8c1d819

Please sign in to comment.