Skip to content

Commit

Permalink
fixed decoding of subject
Browse files Browse the repository at this point in the history
imap_qprint seems to have problems with strings containing the character set (like described here: http://php.net/manual/de/function.imap-qprint.php#4009) - quoted_printable_decode works much better
  • Loading branch information
Alexander Reichardt committed Jul 9, 2015
1 parent 5188586 commit d3986c7
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 @@ -470,7 +470,7 @@ protected function initMailPart(IncomingMail $mail, $partStructure, $partNum, $m
$data = imap_base64($data);
}
elseif($partStructure->encoding == 4) {
$data = imap_qprint($data);
$data = quoted_printable_decode($data);
}

$params = array();
Expand Down

0 comments on commit d3986c7

Please sign in to comment.