On Thu, 6 Apr 2006,
sursum.corda@free.fr wrote:
> I agree threads are trees, but what I mean is the last 10 roots of
> trees.
> They can change of course, as some people will reply to messages or
> create new ones; but at one point in time, I want to see the last 10
> topics, the last 10 trees' roots, the last 10 threads, ...
For what purpose? If the intent is to scroll a view, then you don't want
to re-thread as the range changes.
This quickly gets complicated. It's only easy when you think of the
first, obvious, server actions for one particular client; not what what
some client other than yours wants to do with the data.
> Is there a way to query IMAP for this? Or do I have to ask for ALL
> threads and filter on client side?
You can filter the messages that are threaded on the server, but you can
not filter the threads themselves.
Unless you have a very slow link, getting all the threads isn't a problem,
especially as once you have the entire tree, the client side operations to
manage the view are trivial (there is no need to communicate to the server
what, precisely, the client expects in the view).
-- Mark --
http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.