Mark Crispin wrote:
On Wed, 8 Sep 2004, Shawn Walker wrote:
I have no choice but to download all the message headers
Why?
Because we have no way of knowing what messages that the user want to see. Outlook just say "Give me the contents of this folder". Nothing about saying "give me 1000 messages", though that could be a user's option but we are talking about users that have used Outlook and are used to seeing 15,000 messages in a folder (believe me, there are users out there and have dealt with them before) and so that is what they want to see.
As for the Contacts, Appointment, Tasks, Todo and etc folders, there is simply no way that we could limit how many not to return to the user, we have no way of know what is important to a user to see in thier appointment, contacts, etc.
but I want to get them all at once with one request and many responses which will be much faster than 15,000 requests and 15,000 responses.
Actually, the cache lookahead means that it will be more like 750 requests. If you do the
mail_parameters (NIL,SET_LOOKAHEAD,(void *) LONG_MAX);
call then you'll get one request.
I will try that.
But what I'm trying to do is get all the message header (no bodies) to be able to display the list of messages in a folder. Blame MS for the bad implementation of how Outlook work. ;)
What does Outlook have to do with this?
-- Mark --
http://staff.washington.edu/mrc Science does not emerge from voting, party politics, or public debate. Si vis pacem, para bellum.
