imap_fetch_overview function doesn't work
| From: | kckannan | Date: | Tue, 10 Dec 2002 13:59:09 +0000 |
| Subject: | imap_fetch_overview function doesn't work | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-127639@lists.php.net to get a copy of this message | ||
Hello All,
I have installed Apache/1.3.27, PHP 4.2.3 with
imap support on HP-UX. When I try to run the following
php code, " imap_fetch_overview funcion"
which is used to fetch mail headers for the given
sequence doesn't return anything even if there are
mails in the remote mail box. But this function works
fine on Linux.
--------------------------------------------------------------------------------
$mbox =
imap_open("{your.imap.host:143}","username","password")
or die("can't connect: ".imap_last_error());
$overview = imap_fetch_overview($mbox,"2,4:6",0);
if(is_array($overview)) {
reset($overview);
while( list($key,$val) = each($overview)) {
print $val->msgno
. " - " . $val->date
. " - " . $val->subject
. "\n";
}
}
imap_close($mbox);
--------------------------------------------------------------------------------
Is it a Bug ?
Any HELP is appreciated.
Thanks in Advance
Kannan
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com