On Fri, March 24, 2006 09:51, eCet wrote:
> Jonathan Angliss wrote:
>
>
>>
>> Not entirely possible.  At least not with accurate results.  Plus I
>> think the hold up is in the processing of the THREAD results, and not
>> the fetching of the message headers.  The problem you're going to have
>> is you're going to have to fetch the whole thread response to find out
>> which block of 5000 you want to fetch.  The second problem is, 5000
>> messages aren't necessarily going to be sequential numbers, so you
>> cannot even guess a range.
>
> I think yes. So we know the whole number of messages. It is 20.000.
> SM don't says SORT (ARRIVAL) ISO-8859-2 ALL, rather It says SORT
> (ARRIVAL) ISO-8859-2 20000,19999,19998,19997..., ...,15000
> Nobody cares about the 13422th message. If user wants to access it, ok,
> then say to get the second 5000 block, from 15000-10000
>

I agree. What we could do is if the message count in a folder > your
supposed 5000 then do FETCH 1:* UID first (which is fast) and then take a
slice of that. With the resulting id's we can create a message set and
provide the UID search argument to the thread call and we are done.

Regards,

Marc Groot Koerkamp.




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@lists.sourceforge.net
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to