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 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.
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

Add a Patch

Pull Requests

Add a Pull Request

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-2022 The PHP Group
All rights reserved.
Last updated: Sat May 28 14:05:47 2022 UTC