Re: IMAP sort help.
| From: | Terrence Wong | Date: | Thu, 15 Mar 2001 06:36:34 +0000 |
| Subject: | Re: IMAP sort help. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43974@lists.php.net to get a copy of this message | ||
Hi chris.
The codes works on my linux box too. But retaining the codes, I proceed to connect to a imap server
on a APPLE machine.
Everything works except it stops at imap_sort. Is there a conflict between mac and linux??
terrence
Chris Lee wrote:
> 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
>
> lee@mediawaveonline.com
>
> "Terrence Wong" <terrence@edlabs.com> wrote in message
> news:3AAF6B99.F0E4B5A0@edlabs.com...
> 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net