#43659 [Opn->Bgs]: imap_headerinfo fail to return mail header

From: Date: Mon, 28 Jan 2008 23:59:49 +0000
Subject: #43659 [Opn->Bgs]: imap_headerinfo fail to return mail header
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-121664@lists.php.net to get a copy of this message
ID: 43659 Updated by: tony2001@php.net Reported By: mcheung63 at hotmail dot com -Status: Open +Status: Bogus Bug Type: IMAP related Operating System: windows xp PHP Version: 5.2.5 New Comment: Please report IMAP c-client bugs to its developers. Thank you. Previous Comments: ------------------------------------------------------------------------ [2007-12-23 07:58:35] mcheung63 at hotmail dot com After i change @imap_sort($mbox,SORTDATE,1,SE_UID) to @imap_sort($mbox,SORTDATE,1) , everything work fine, sorry about the mistake ------------------------------------------------------------------------ [2007-12-22 16:34:10] mcheung63 at hotmail dot com 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 (mcheung63@hotmail.com) 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); } $sorted_headers=@imap_sort($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 this bug report at http://bugs.php.net/?id=43659&edit=1

« previous php.bugs (#121664) next »