Skip to content

Commit d3986c7

Browse files
author
Alexander Reichardt
committed
fixed decoding of subject
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
1 parent 5188586 commit d3986c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpImap/Mailbox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ protected function initMailPart(IncomingMail $mail, $partStructure, $partNum, $m
470470
$data = imap_base64($data);
471471
}
472472
elseif($partStructure->encoding == 4) {
473-
$data = imap_qprint($data);
473+
$data = quoted_printable_decode($data);
474474
}
475475

476476
$params = array();

0 commit comments

Comments
 (0)