Doc #65126 [NEW]: imap_fetchoverview returns all the header fields but for message id
From: abhinav dot octane at gmail dot com
Operating system: windows 7
PHP version: 5.5.0
Package: Scripting Engine problem
Bug Type: Documentation Problem
Bug description:imap_fetchoverview returns all the header fields but for message id
Description:
------------
---
From manual page:
http://www.php.net/function.imap-fetch-overview#refsect1-
function.imap-fetch-overview-returnvalues
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 77 message id is returned for 20
--
Edit bug report at https://bugs.php.net/bug.php?id=65126&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65126&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65126&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65126&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=65126&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=65126&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65126&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=65126&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=65126&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=65126&r=support
Expected behavior: https://bugs.php.net/fix.php?id=65126&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=65126&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=65126&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=65126&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65126&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=65126&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=65126&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=65126&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65126&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65126&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=65126&r=mysqlcfg
Thread (5 messages)
- abhinav dot octane at gmail dot com