From: sgattas at fibertel dot com dot ar Operating system: Linux (64 bits) PHP version: 5.2.0 PHP Bug Type: Mail related Bug description: "Message-ID" from gmail mails not appearing.
Description: ------------ Using standard imap functions to grab and store mails, I need to keep track of the Message-ID (and References and In-Reply-To) to build threads. I can successfully do it with mails sent from a lot of different accounts to my email test account but every mail sent from a gmail account does not have a Message-ID when I fetched it with a php script. I checked the same mails from my thunderbird (sent the same mail to another account and downloaded it with TB) and I verified that a Message-ID indeed exists. It seems "References" exists and lists all "Message-ID" in the thread except the one from gmail. I suspect it's due to the extension (in characters) of gmail Message-ID (it always seems larger than the other ones) Reproduce code: --------------- $mbox = imap_open("{imap.domain:143/imap}INBOX",$user,$pass); if($mbox) { $nmsg=imap_num_msg($mbox); for ($i=1; $i<=$nmsg; $i++) { $header = imap_header($mbox, $i); print_r($header); echo '<br><br>'; } } else { echo 'Connection failed<br>'; } imap_close($mbox); } Expected result: ---------------- In mails sent from a gmail account I expect to get a Message-ID in the header as defined in RFC822. Actual result: -------------- In mails sent from gmail I get a null value in Message-ID although I know that a Message-ID exists. -- Edit bug report at http://bugs.php.net/?id=39666&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39666&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39666&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39666&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39666&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39666&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39666&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39666&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39666&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39666&r=support Expected behavior: http://bugs.php.net/fix.php?id=39666&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39666&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39666&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39666&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39666&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39666&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39666&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39666&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39666&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39666&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39666&r=mysqlcfg