From:             janders at javeo dot com
Operating system: RHEL V3
PHP version:      4.3.8
PHP Bug Type:     IMAP related
Bug description:  Quotes in header From: corrupts imap_headerinfo

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" <[EMAIL PROTECTED]>" 

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 <[EMAIL PROTECTED]>"@t1
    [from] => Array([0] => stdClass Object
                (
                 [mailbox] => 30TV <[EMAIL PROTECTED]>
                 [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 bug report at http://bugs.php.net/?id=29851&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29851&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29851&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29851&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=29851&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=29851&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=29851&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=29851&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=29851&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=29851&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=29851&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=29851&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=29851&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=29851&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29851&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=29851&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=29851&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=29851&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29851&r=float

Reply via email to