php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66447 imap_fetchstructure doesn't work after some mails
Submitted: 2014-01-09 06:23 UTC Modified: 2020-10-25 04:22 UTC
Votes:4
Avg. Score:4.0 ± 1.0
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: amit dot singh260288 at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: IMAP related
PHP Version: 5.5.7 OS: window
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:
MUST BE VALID
Solve the problem:
20 + 18 = ?
Subscribe to this entry?

 
 [2014-01-09 06:23 UTC] 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


Patches

imap_fetchstructure-support (last revision 2014-01-09 06:26 UTC by amit dot singh260288 at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-01-09 06:29 UTC] amit dot singh260288 at gmail dot com
thier is error of no body found after reading 25004 mails
 [2014-01-19 14:56 UTC] felipe@php.net
-Summary: imap_fetchstructure dose'nt work after some mails +Summary: imap_fetchstructure doesn't work after some mails
 [2020-10-16 14:59 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-10-16 14:59 UTC] cmb@php.net
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>
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 06:01:28 2024 UTC