Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.4

Bug #19994 imap_fetchoverview
Submitted: 2013-06-26 11:52 UTC
From: abhi_dixit Assigned:
Status: Open Package: Net_IMAP (version Unknown)
PHP Version: 5.5.0 OS: windows 7
Roadmaps: (Not assigned)    
Subscription  


 [2013-06-26 11:52 UTC] abhi_dixit (abhinav dixit)
Description: ------------ when i call imap_fetch_overview iam not getting the value for message id for all the emails read using imap_fetch_overview,i had tried this using imap_headers(), imap_headerinfo(), but failed to get the value of message id Test script: --------------- imap_fetchoverview returns all the header fields but for message id there is no value, below is the code i am using-: <?php $m_username="example@gmail.com"; $m_password="xxxxx"; $mbox=imap_open('{imap.gmail.com:993/imap/ssl}[Gmail]/Spam', $m_username, $m_password); $MC = imap_check($mbox); // Fetch an overview for all messages in SPAM $overview = imap_fetch_overview($mbox,"1:{$MC->Nmsgs}",0); echo '<pre>'; print_r($overview); exit; ?> below is it's output-: Array ( [0] => stdClass Object ( [subject] => hello test [from] => ABCD [to] => example@gmail.com [date] => Mon, 24 Jun 2013 15:01:07 +0100 [message_id] => [size] => 1821 [uid] => 2814 [msgno] => 1 [recent] => 0 [flagged] => 0 [answered] => 0 [deleted] => 0 [seen] => 0 [draft] => 0 [udate] => 1372082473 ) [1] => stdClass Object ( [subject] => hello test [from] => ABCD [to] => example@gmail.com [date] => Mon, 24 Jun 2013 15:10:03 +0100 [message_id] => [size] => 20823 [uid] => 2815 [msgno] => 2 [recent] => 0 [flagged] => 0 [answered] => 0 [deleted] => 0 [seen] => 0 [draft] => 0 [udate] => 1372083053 --- for some other email id this code returns message id but not for all emails out of 77emails message id is returned for 20 Expected result: ---------------- i want that when i call imap_fetch_overview i should get the value of message id for the emails -: [message_id] => <51c2cbad.063ae50a.0405.ffff9ce0SMTPIN_ADDED_MISSING@m x.google.com>

Comments

 [2014-11-27 20:33 UTC] kaspis (Kasparas Ziuraitis)
I have exactly the same problem. Was running the email reading script for two years, now I have moved to a new server and the stdclass dont return message ID anymore. Any solutions?