php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #62813 imap_fetchstructure() manual claims to return "envelope" and "internal date"
Submitted: 2012-08-13 21:32 UTC Modified: 2020-10-08 15:38 UTC
From: thomas at landauer dot at Assigned: cmb (profile)
Status: Closed Package: IMAP related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
23 + 1 = ?
Subscribe to this entry?

 
 [2012-08-13 21:32 UTC] thomas at landauer dot at
Description:
------------
---
From manual page: http://www.php.net/function.imap-fetchstructure#refsect1-function.imap-fetchstructure-returnvalues
---

The first sentence contains 3 errors:
"Returns an object includes the envelope, internal date, size, flags and body structure along with a similar object for each mime attachment."

1) Should be "Returns an object THAT includes..."
2) What do you mean by "envelope"? I can't see anything from the envelope (i.e. the SMTP commands) in the objects list.
3) Where is the "internal date" in the objects list? This is the very thing I was looking for, so if you have any hints on how to get the INTERNALDATE attribute of the message, please let me know :-)
4) "mime" should probably be spelled as "MIME"


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 12:08 UTC] cmb@php.net
-Package: Documentation problem +Package: IMAP related
 [2020-10-08 15:38 UTC] cmb@php.net
-Summary: imap_fetchbody() manual claims to return "envelope" and "internal date" +Summary: imap_fetchstructure() manual claims to return "envelope" and "internal date" -Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2020-10-08 15:38 UTC] cmb@php.net
| "Returns an object includes the envelope, internal date, size,
| flags and body structure along with a similar object for each mime
| attachment."

That part is pretty much nonsense.
 [2020-10-08 15:42 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=091d0f1d27ec9b4a10686d13f0c8eee44df3fb0b
Log: Fix #62813: imap_fetchstructure() manual claims to return "envelope" and "internal date"
 [2020-10-08 15:42 UTC] phpdocbot@php.net
-Status: Verified +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 09:01:27 2024 UTC