#39666 [Bgs]: "Message-ID" from gmail mails not appearing.

From: Date: Tue, 28 Nov 2006 21:11:06 +0000
Subject: #39666 [Bgs]: "Message-ID" from gmail mails not appearing.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-105581@lists.php.net to get a copy of this message
ID: 39666 User updated by: sgattas at fibertel dot com dot ar Reported By: sgattas at fibertel dot com dot ar Status: Bogus Bug Type: Mail related Operating System: Linux (64 bits) PHP Version: 5.2.0 New Comment: I'm using imap-2006d.DEV.SNAP-0611201609. It's as new as it gets. If you say I should try over there, I will. Any news regarding php I will bring them back. Previous Comments: ------------------------------------------------------------------------ [2006-11-28 21:05:09] tony2001@php.net Try to update c-client library (which is actually used by ext/imap) to the latest available version (the package is usually called imap-lib-200x or imap-200x) and rebuild PHP using the new library. If that doesn't help, please report this problem to c-client developers. Thank you. ------------------------------------------------------------------------ [2006-11-28 20:49:04] sgattas at fibertel dot com dot ar 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 this bug report at http://bugs.php.net/?id=39666&edit=1

« previous php.bugs (#105581) next »