|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39666 "Message-ID" from gmail mails not appearing.
Submitted: 2006-11-28 20:49 UTC Modified: 2006-11-28 21:11 UTC
From: sgattas at fibertel dot com dot ar Assigned:
Status: Not a bug Package: Mail related
PHP Version: 5.2.0 OS: Linux (64 bits)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
25 - 11 = ?
Subscribe to this entry?

 [2006-11-28 20:49 UTC] sgattas at fibertel dot com dot ar
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);
  for ($i=1; $i<=$nmsg; $i++) {
   $header = imap_header($mbox, $i); 
   print_r($header); echo '<br><br>';
     echo 'Connection failed<br>';

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-28 21:05 UTC]
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 21:11 UTC] sgattas at fibertel dot com dot ar
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.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 10:01:26 2024 UTC