ID:               39666
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sgattas at fibertel dot com dot ar
-Status:           Open
+Status:           Bogus
 Bug Type:         Mail related
 Operating System: Linux (64 bits)
 PHP Version:      5.2.0
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to