Edit report at http://bugs.php.net/bug.php?id=37659&edit=1
ID: 37659 Comment by: willieyam2003 at yahoo dot com dot hk Reported by: mad at dactar dot ch Summary: imap_headerinfo vs message_id Status: Bogus Type: Bug Package: IMAP related Operating System: HP-UX PHP Version: 5.1.4 Block user comment: N Private report: N New Comment: I found out what goes wrong. When echo strstr($msgid,1,$msgidlen-1), the result is normal. Those 20% email sent by outlook, the message id looks like this: <[email protected]> (html tag). Other mail client message id looks similar but imap_headerinfo will change '<' to '<' and '>' to '>' automatically. $msgid = str_replace('<','',$msgid); $msgid = str_replace('>','',$msgid); echo $msgid; then the echo result is normal. Previous Comments: ------------------------------------------------------------------------ [2011-01-26 09:41:11] willieyam2003 at yahoo dot com dot hk I faced similar problem. System info: PHP 5.1; Linux: RHEL 5.x; Qmail_Ldap/courier-imap-4.x Some mails (about 20% mails) imap_headerinfo() & imap_fetcheader() both get empty message_id. use strlen($msgid); I got the length = 47 But if echo $msgid; the result is empty. How to fix this problem, please advise. ------------------------------------------------------------------------ [2006-06-02 10:47:51] mad at dactar dot ch I'm talking about debug messages for an extension. But if PHP doesn't have a debug mode for the extensions, there's no debug messages available of course. ------------------------------------------------------------------------ [2006-06-02 10:39:50] [email protected] I've no idea what debug messages are you talking about. Please keep this bug as bogus. ------------------------------------------------------------------------ [2006-06-02 10:14:12] mad at dactar dot ch Sorry for the misunderstood, but is it possible to have debug messages with php and a particular extension (in this case imap/c-client) ? I would have php debug data for imap-client with the php code I've provided. ------------------------------------------------------------------------ [2006-06-01 14:21:11] [email protected] >It's right, but PHP, PHP's users and website's visitors are impacted. As well as everybody else using c-client. >So, I can open a bug to c-client's mainteners. I need debug data for that. Is there a way to obtain such info ? You should ask them about it. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=37659 -- Edit this bug report at http://bugs.php.net/bug.php?id=37659&edit=1
