Bug #66117 [NoF]: imap_fetchstructure dparameters[0]->value incomplete
Edit report at https://bugs.php.net/bug.php?id=66117&edit=1
ID: 66117
Updated by: cmb@php.net
Reported by: saygushkin at gmail dot com
Summary: imap_fetchstructure dparameters[0]->value incomplete
Status: No Feedback
Type: Bug
Package: IMAP related
Operating System: Linux
PHP Version: 5.4.22
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
See <https://www.php.net/support>.
Previous Comments:
------------------------------------------------------------------------
[2021-02-03 15:15:50] amal dot mellouli at gmail dot com
HELLO
We are looking for solution to our problem which is : deal with filename*n* for example filename*0*
/ filename*1*, ... They don't appear in the result of the function imap_fetchstructure.
The body content appears but not the attachment's content.
Have you any solution please,
Best regards
------------------------------------------------------------------------
[2020-10-25 04:22:08] 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-16 14:27:27] cmb@php.net
Based on requinix' comment, it's pretty clear what happens: the
continuation is ignored. I can, however, not reproduce the
reported behavior.
------------------------------------------------------------------------
[2013-11-19 19:21:51] requinix@php.net
Expected and actual outputs are backwards.
The relevant RFC is #2231: "MIME Parameter Value and Encoded Word Extensions: Character Sets,
Languages, and Continuations"
http://tools.ietf.org/html/rfc2231
tl;dr: the filename would be interpreted as coming in multiple parts (because of the *Ns) and
contains charset info (because of the trailing *s), and the value is decoded as UTF-8 (raw value is
formatted as charset'language'value).
------------------------------------------------------------------------
[2013-11-19 13:05:54] saygushkin at gmail dot com
fix summary
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=66117
--
Edit this bug report at https://bugs.php.net/bug.php?id=66117&edit=1
Thread (10 messages)