Bug #66447 [NEW]: imap_fetchstructure dose'nt work after some mails
| From: | amit dot singh260288 at gmail dot com | Date: | Thu, 09 Jan 2014 06:23:25 +0000 |
| Subject: | Bug #66447 [NEW]: imap_fetchstructure dose'nt work after some mails | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-183657@lists.php.net to get a copy of this message | ||
From: amit dot singh260288 at gmail dot com
Operating system: window
PHP version: 5.5.7
Package: IMAP related
Bug Type: Bug
Bug description:imap_fetchstructure dose'nt work after some mails
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 bug report at https://bugs.php.net/bug.php?id=66447&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66447&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66447&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66447&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66447&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66447&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66447&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66447&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66447&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66447&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66447&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66447&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66447&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66447&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66447&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66447&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66447&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66447&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66447&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66447&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66447&r=mysqlcfg