imap functions are notorious for not returning anything usfull, same with xslt 
functions.

   $headers = imap_sort($this->imap_stream, SORTARRIVAL, 1, SE_UID );

this wrks on my linux box. its almost exactly the same as yours. one thing I found is 
try playing with

   if ($this->imap_folder)
    $this->imap_stream = @imap_open($this->imap_stream_string, $this->imap_username, 
$this->imap_password);
   else
    $this->imap_stream = @imap_open($this->imap_stream_string, $this->imap_username, 
$this->imap_password, OP_HALFOPEN);

if there is a folder then do no use OP_HALFOPEN. I had to use this to get nntp working 
right.


-- 

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]



"Terrence Wong" <[EMAIL PROTECTED]> wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
This command works without problems on a local unix server.
However, when I tried the exact same code , $sortmail =
imap_sort($mailbox,SORTSIZE,1) on a remote imap server running on mac,
it produces problems. (no error messages)

I am unable to check the error messages as they are none. And adding on
to that, the HTML have been terminated without any error messages
without completing the entire html closing tags.

All functions works, except imap_sort?

Anyone? any ideas?
terrence


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to