php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #66447
Patch imap_fetchstructure-support revision 2014-01-09 06:26 UTC by amit dot singh260288 at gmail dot com

Patch imap_fetchstructure-support for IMAP related Bug #66447

Patch version 2014-01-09 06:26 UTC

Return to Bug #66447 | Download this patch
Patch Revisions:

Developer: amit.singh260288@gmail.com

$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'];
              }
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Feb 28 19:01:24 2021 UTC