Bug #66447 [Opn->Fbk]: imap_fetchstructure doesn't work after some mails

From: Date: Fri, 16 Oct 2020 14:59:53 +0000
Subject: Bug #66447 [Opn->Fbk]: imap_fetchstructure doesn't work after some mails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229670@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66447&edit=1 ID: 66447 Updated by: cmb@php.net Reported by: amit dot singh260288 at gmail dot com Summary: imap_fetchstructure doesn't work after some mails -Status: Open +Status: Feedback Type: Bug Package: IMAP related Operating System: window PHP Version: 5.5.7 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Can you still reproduce this with any of the actively supported PHP versions[1]? If so, does this always happen for the 25004th mail, or was this actually about a certain (potentially corrupted message)? [1] <https://www.php.net/supported-versions.php> Previous Comments: ------------------------------------------------------------------------ [2014-01-09 06:29:52] amit dot singh260288 at gmail dot com thier is error of no body found after reading 25004 mails ------------------------------------------------------------------------ [2014-01-09 06:23:25] amit dot singh260288 at gmail dot com Description: ------------ $k = 1; for($i=$cnt;$i<=$till;$i++,$k++) { $this->data[$k]['header'] = imap_headerinfo($this->conn, $i); $this->data[$k]['structure'] = imap_fetchstructure($this->conn, $i); $this->data[$k]['date'] = $this->data[$k]['header']->date; $this->data[$k]['from'] = $this->data[$k]['header']->fromaddress; $this->data[$k]['subject'] = $this->data[$k]['header']->subject; $this->data[$k]['to'] = $this->data[$k]['header']->toaddress; if ($this->data[$k]['structure']->subtype === 'MIXED') { $this->data[$k]['body'] = ' '; $k--; } else { $this->data[$k]['body'] = imap_body($this->conn, $i); $this->data[$k]['email'] = $this->extract_emails_from($this->data[$k]['body']); $this->data[$k]['phone'] = $this->extract_phone($this->data[$k]['body']); $this->data[$k]['name'] = $this->extract_name($this->data[$k]['body']); $this->data[$k]['query'] = $this->extract_query($this->data[$k]['body']); $this->data[$k]['location'] = $this->extract_location($this->data[$k]['body']); $this->data[$k]['city'] = $this->extract_city($this->data[$k]['body']); $this->data[$k]['msgno'] = $this->data[$k]['header']->Msgno; $email = $this->data[$k]['email']; } Test script: --------------- warning: imap_fetchstructure(): No body information available in C:\xampp\htdocs\datafiller\Email_reader.php on line 44 this is bug what i got. it does'nt work after 25004 mail reading ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66447&edit=1

« previous php.bugs (#229670) next »