From:             mcheung63 at hotmail dot com
Operating system: windows xp
PHP version:      5.2.5
PHP Bug Type:     IMAP related
Bug description:  imap_headerinfo fail to return mail header

Description:
------------
Hi all, i am running php 5.2.5 with apache 2.2 in windows xp, i am try to
retrieve email headers from dovecot-1.0.7-2.fc8 runing on fedora core 8. If
the email subject have unicode character, imap_headerinfo() will return
FALSE.

If i use imap_fetch_overview() to retrieve email headers, everything
fine.
thanks
from Peter ([EMAIL PROTECTED])

Reproduce code:
---------------
function getHeaderList($serverAddress, $port, $ssl, $username, $password,
$inbox, $startRowNumber, $endRowNumber){
    if ($ssl){
        $mbox =
imap_open("{".$serverAddress.":".$port."/ssl/novalidate-cert}".$inbox,
$username, $password);
    }else{
        $mbox =
imap_open("{".$serverAddress.":".$port."/novalidate-cert}".$inbox,
$username, $password);
    }
    [EMAIL PROTECTED]($mbox,SORTDATE,1,SE_UID);
    $returnArray=Array();
    $x=0;
    while (list(,$qq) = each($sorted_headers)) {
        $returnArray[$x++]=imap_headerinfo($mbox, $qq); 
    }
    imap_close($mbox);
    return $returnArray;
}


-- 
Edit bug report at http://bugs.php.net/?id=43659&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43659&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43659&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43659&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43659&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43659&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43659&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43659&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43659&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43659&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43659&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43659&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43659&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43659&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43659&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43659&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43659&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43659&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43659&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43659&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43659&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43659&r=mysqlcfg

Reply via email to