|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesimap_fetchstructure-support (last revision 2014-01-09 06:26 UTC by amit dot singh260288 at gmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-01-09 06:29 UTC] amit dot singh260288 at gmail dot com
[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
[2020-10-25 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 18:00:01 2025 UTC |
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