|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #37396 Feature request for imap_fetchstructure
Submitted: 2006-05-10 11:47 UTC Modified: 2020-10-25 04:22 UTC
From: lacak at users dot sourceforge dot net Assigned: cmb (profile)
Status: No Feedback Package: IMAP related
PHP Version: 5.1.4 OS: Windows
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 — but make sure to vote on the bug!
Your email address:
Solve the problem:
30 - 2 = ?
Subscribe to this entry?

 [2006-05-10 11:47 UTC] lacak at users dot sourceforge dot net
It would be nice if function imap_fetchstructure() will be able to return object extended by "part_number", which may be used as paramater in imap_fetchbody().

So I can walk throught structure of mail message using imap_fetchstructure() and obtain data by single call imap_fetchbody().

Today I must relatively complicate build part_number.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-21 21:26 UTC]
-Package: Feature/Change Request +Package: IMAP related
 [2020-10-16 14:51 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-10-16 14:51 UTC]
Maybe I misunderstand your request, but it doesn't look hard to
add the part numbers yourself:

function add_part_numbers($structure, $acc = '') {
    if (isset ($structure->parts)) {
        foreach ($structure->parts as $i => $part) {
            $part_number = $acc . ($i + 1);
            $part->part_number = $part_number;
            add_part_numbers($part, "$part_number.");

$structure = imap_fetchstructure($imap, 1);
 [2020-10-25 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Jan 26 09:01:23 2021 UTC