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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to