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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: thomas at landauer dot at
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri Sep 19 00:00:01 2025 UTC