Bug #37659 [Com]: imap_headerinfo vs message_id

From: Date: Mon, 29 Dec 2014 23:28:26 +0000
Subject: Bug #37659 [Com]: imap_headerinfo vs message_id
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189314@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=37659&edit=1

 ID:                 37659
 Comment by:         p at seyfert dot at
 Reported by:        mad at dactar dot ch
 Summary:            imap_headerinfo vs message_id
 Status:             Not a bug
 Type:               Bug
 Package:            IMAP related
 Operating System:   HP-UX
 PHP Version:        5.1.4
 Block user comment: N
 Private report:     N

 New Comment:

thank you, willieyam, that fixed the problem;

message_id appear now. 
same occours with gmx-mails (freemailer) and gmail.

cheers


Previous Comments:
------------------------------------------------------------------------
[2011-01-27 03:32:55] willieyam2003 at yahoo dot com dot hk

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: 
<xxxxxxx@yyyyy.com> (html tag). Other mail client message id looks similar but 
imap_headerinfo will change '<' to '&lt;' and '>' to
'&gt;' automatically.

$msgid = str_replace('<','',$msgid);
$msgid = str_replace('>','',$msgid);
echo $msgid; 

then the echo result is normal.

------------------------------------------------------------------------
[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] tony2001@php.net

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.

------------------------------------------------------------------------


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

    https://bugs.php.net/bug.php?id=37659


--
Edit this bug report at https://bugs.php.net/bug.php?id=37659&edit=1


Thread (12 messages)

« previous php.bugs (#189314) next »