Req #37396 [Fbk->NoF]: Feature request for imap_fetchstructure

From: Date: Sun, 25 Oct 2020 04:22:08 +0000
Subject: Req #37396 [Fbk->NoF]: Feature request for imap_fetchstructure
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229905@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=37396&edit=1 ID: 37396 Updated by: php-bugs@lists.php.net Reported by: lacak at users dot sourceforge dot net Summary: Feature request for imap_fetchstructure -Status: Feedback +Status: No Feedback Type: Feature/Change Request Package: IMAP related Operating System: Windows PHP Version: 5.1.4 Assigned To: cmb Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2020-10-16 14:51:00] cmb@php.net Maybe I misunderstand your request, but it doesn't look hard to add the part numbers yourself: <?php 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); add_part_numbers($structure); ?> ------------------------------------------------------------------------ [2006-05-10 11:47:57] lacak at users dot sourceforge dot net Description: ------------ 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. Thanks -Laco ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=37396&edit=1

« previous php.bugs (#229905) next »