Re: [PHP] functions for sorting/paging functionality for imap mailboxes

2007-07-02 Thread Greg Donald

On 6/25/07, Yashesh Bhatia [EMAIL PROTECTED] wrote:

  i'm implementing an imap based mail client


That's a major wheel to go reinventing, have you not tried IMP/Horde?

http://www.horde.org/imp/


--
Greg Donald
http://destiney.com/

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



[PHP] functions for sorting/paging functionality for imap mailboxes

2007-06-25 Thread Yashesh Bhatia

hello,

 i'm implementing an imap based mail client and want to provide
sorting / paging functionality for the inbox. there's a function to
retrieve headers
imap_headers (http://www.php.net/imap_headers) however, this gets
headers for all messages in a mailbox(inbox).

is there any function that will fetch headers similar to a SQL LIMIT
clause (LIMIT offset, row_count)  - so something like fetch 10 headers
starting from 11.

 the sorting can be accomplished by the function imap_sort so i'm
kindof stuck to get the paging functionality efficiently. (of course one can get
all headers and then use the array index to simulate limit offset, row_count).

thanks in advance.

yashesh bhatia


Go Pre
http://www2.localaccess.com/rlalonde/pre.htm


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