|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65767 Invalid quoted-printable sequence
Submitted: 2013-09-26 13:19 UTC Modified: 2013-10-15 11:54 UTC
Avg. Score:3.4 ± 1.3
Reproduced:7 of 7 (100.0%)
Same Version:2 (28.6%)
Same OS:0 (0.0%)
From: info at djdb dot be Assigned:
Status: No Feedback Package: IMAP related
PHP Version: 5.5.4 OS: win7
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-09-26 13:19 UTC] info at djdb dot be
From manual page:
Unknown: Invalid quoted-printable sequence: ="_=_swift_v4_136992480651a764c653d74_=_" --_=_swift_v4_136992480651a764c653 (errflg=3) in Unknown on line 0

Test script:
confediral script can not post

read noreplay from mail sended by swift

Expected result:
I think it has with cote that they use so by norepy wil the message as send comes as plain back so its can maybe also encoding. but i only let you now it that if you want you can do something .


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-26 17:38 UTC]
-Status: Open +Status: Feedback -Type: Feature/Change Request +Type: Bug -Package: *Mail Related +Package: IMAP related
 [2013-09-26 17:38 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

Need a complete repro script. imap_qprint() requires only a string, not an IMAP server, so you should be able to pare something down.

And keep in mind you can't imap_qprint() an entire multipart email. You have to 
do it to the individual parts (and only the ones that are Quoted-Printable, of 
 [2013-10-15 11:54 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2020-10-14 14:53 UTC] jab_creations at yahoo dot com
A lot of people are having problems dealing with malformed quote-printable text.

The malformed q-encoded text from Yahoo:

=?UTF-8?Q?GOG_Forward =?UTF-8?Q?ck-off_with_Weekly_Sale_up_to_90%_off?=

The original q-encoded text that decodes correctly without involving Yahoo for any reason:

=?UTF-8?Q?GOG_Forward=3A_Fw=3A_=F0=9F=98=89_A_great_Monday_kick-?= =?UTF-8?Q?off_with_Weekly_Sale_up_to_90=25_off?=

Both native PHP functions imap_mime_header_decode and quoted_printable_decode throw the error:

Notice: Unknown: Invalid quoted-printable sequence: =?UTF-8?Q?ck-off with Weekly Sale up to 90% off (errflg=3) in Unknown on line 0
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Jan 18 08:01:26 2021 UTC