php-imap-client: Email with attachments result in error.

Hi $emails = $imap->getMessages(); results in

[25-Apr-2017 14:06:25 Europe/Minsk] PHP Notice:  Unknown: Invalid quoted-printable sequence: =In response to your recent email )

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

� (errflg=3) in Unknown on line 0

It still retuned the emails but I cant convert the data to JSON now. The attachments is a small png image.

About this issue

  • Original URL
  • State: open
  • Created 7 years ago
  • Comments: 43 (16 by maintainers)

Most upvoted comments

I replaced “imap_qprint()” with “quoted_printable_decode()” in protected function decodeBody. This avoids the notice. Needs more investigation…