#29851 [Opn->Bgs]: Quotes in header From: corrupts imap_headerinfo

From: Date: Thu, 26 Aug 2004 22:47:41 +0000
Subject: #29851 [Opn->Bgs]: Quotes in header From: corrupts imap_headerinfo
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-65311@lists.php.net to get a copy of this message
ID: 29851 Updated by: iliaa@php.net Reported By: janders at javeo dot com -Status: Open +Status: Bogus Bug Type: IMAP related Operating System: RHEL V3 PHP Version: 4.3.8 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. The header seems to corrupt in the 1st place. Previous Comments: ------------------------------------------------------------------------ [2004-08-26 16:51:51] janders at javeo dot com Description: ------------ Email message header with additional quotes in From: field corrupts results returned by imap_headerinfo. E.g. Message with this from field: From: "30"TV" <carpenter@example.com>" imap_headerinfo produces: stdClass Object ( [date] => Wed, 25 Aug 2004 19:16:52 -0800 [Date] => Wed, 25 Aug 2004 19:16:52 -0800 [subject] => Free to new members- Flat Screen TV [Subject] => Free to new members- Flat Screen TV [fromaddress] => "30TV <carpenter@example.com>"@t1 [from] => Array([0] => stdClass Object ( [mailbox] => 30TV <carpenter@example.com> [host] => t1 ) ) <snip...> Reading this message from imap server using Outlook produces correct results, with additional quotes simply removed. I also read this message from imap server using Pine, since php uses same c-client. When displaying the message header in Pine, Pine replaced the corrupt "From" field with the non-corrupt "To" field when message header is displayed in the Inbox. -JA ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29851&edit=1

« previous php.bugs (#65311) next »