Bug #65767 [Com]: Invalid quoted-printable sequence

From: Date: Wed, 14 Oct 2020 14:53:09 +0000
Subject: Bug #65767 [Com]: Invalid quoted-printable sequence
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229621@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65767&edit=1 ID: 65767 Comment by: jab_creations at yahoo dot com Reported by: info at djdb dot be Summary: Invalid quoted-printable sequence Status: No Feedback Type: Bug Package: IMAP related Operating System: win7 PHP Version: 5.5.4 Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2013-10-15 11:54:51] 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. ------------------------------------------------------------------------ [2013-09-26 17:38:00] requinix@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php 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 course). ------------------------------------------------------------------------ [2013-09-26 13:19:09] info at djdb dot be Description: ------------ --- From manual page: http://www.php.net/function.imap-qprint --- 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 . ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65767&edit=1

« previous php.bugs (#229621) next »