Bug #7531 Updated: imap_qprint faultly returns empty string
| From: | vlad@php.net | Date: | Sat, 05 May 2001 01:22:50 +0000 |
| Subject: | Bug #7531 Updated: imap_qprint faultly returns empty string | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-53980@lists.php.net to get a copy of this message | ||
ID: 7531
Updated by: vlad
Reported By: michel.jansens@ulb.ac.be
Old-Status: Open
Status: Bogus
Bug Type: IMAP related
PHP Version: 4.0.1pl2
Assigned To:
Comments:
That's not a bug. This is a malformed quoted-printable encoding (read FRC 2045 section 6.7).
If you try to do imap_qprint("=\r\nE9") (which is found in line 3 of your example),
it's not gonna work, and neither will quoted_printable_decode(). Both will print return
"E9", and not the character encoded.
You can't see any output at all because don't even use "\r\n", but just
"\n", which is not RFC compliant by itself (but nobody seems to care).
In short, this is not a bug, and the difference between imap_qprint() and quoted_printable_decode()
is that one does not produce any result at all, while the other produces bogus result (although it
does it's best to guess what you meant and fails).
Vlad
Previous Comments:
---------------------------------------------------------------------------
[2000-10-30 10:00:20] michel.jansens@ulb.ac.be
I just found a mail body which is not decoded properly
by imap_qprint() (returning empty string), but is
decoded the right way by quoted_printable_decode()
the string is the following (not including the ------ lines)
-------------------------------------
>Monsieur, A la suite de l'envoi d'un bon vert pour la
connection =E0=20 resulb, nous n'avons toujours pas
de nouvelles. Le payement a-t'il bien =E9t=E9 effectu=
E9? sinon pourriez-vous nous=20 prevenir s'il vous
plait et dans le cas contraire dans combien=20 de
temps aurons-nous une adresse IP? =20 Je vous
serais gr=E9 de me tenir au courant. Merci d'avance
Sadia >> Monsieur, >> >> >>Notre service
d'embryologie mol=E9culaire aimerait faire une
demande pour >>la connection d'un nouvel ordinateur
=E0 resulb. Nous comptons effectuer >>le paiement
des 4000 Bef par bon vert , vous serait-il possible de
nous >>faire parvenir le num=E9ro de compte vers
lequel nous devons effectuer le >>virement. >> >>Je
vous remercie d'avance. >> >>Sadia > >Bonjour, > >Il
suffit de mettre le num=E9ro du cl=E9 d'imputation
dans la case r=E9serv=E9 >au titulaire du compte et
pour le reste c'est la secr=E9taire de notre >service qui
s'en occupe. > >Bien =E0 vous, Kurosh Mahmoudi >=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3 D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D >SERVICE RESEAU > >CP
197 >AVENUE F.D. ROOSEVELT 50 >B-1050
BRUXELLES >TEL. 32-2-650 37 10 >FAX. 32-2-650 37
40 >E-MAIL:resulb@ulb.ac.be >=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D =
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D > > >
-----------------------------------------------------------------
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=7531&edit=2