|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6823 $structure->ifid == 1, but ->id is empty
Submitted: 2000-09-20 23:22 UTC Modified: 2000-10-17 12:02 UTC
From: e at ik dot nu Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.2 OS: FreeBSD 4.1
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: e at ik dot nu
New email:
PHP Version: OS:


 [2000-09-20 23:22 UTC] e at ik dot nu
When executing the following code on a message subpart known to have a Content-ID

	$structure = imap_fetchstructure($stream, $msg_number);
	print "id is '" . $structure->id . "', while ifid is " . $structure->ifid . ".<br>\n";

This is returned

id is '', while ifid is 1.

The remaining data in $structure is correct.  I can get the content of this part without a problem.

This is the first part of the message-part:

Content-Type: image/jpeg
Content-ID: <>
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="/tmp/nsmail39C8A16A4888A39.jpeg"



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-17 12:02 UTC]
Works for me just fine. Try this:

$structure = imap_fetchstructure($stream, $msg_number);
print "id is '" . htmlspecialchars($structure->id)."<br>\n";


PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat May 28 14:05:47 2022 UTC