php.net |  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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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:


--------------10B0FACE3809AA159BDD27F9
Content-Type: image/jpeg
Content-ID: <part1.39C8A16A.F951EDFD@ilse.nl>
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="/tmp/nsmail39C8A16A4888A39.jpeg"

/9j/4AAQSkZJRgABAQEASABIAAD//gAQRWR3aW5tIGJlbGxlbmT/2wBDAAUDBAQEAwUEBAQF
BQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/

Patches

Pull Requests

History

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

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

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 14:01:37 2025 UTC