Re: mail_fetch_fast() and ENVELOPE

2004-09-08 Thread Shawn Walker
Mark Crispin wrote: On Wed, 8 Sep 2004, Shawn Walker wrote: 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". I still don't understand. Are you writing replacement IMAP client code for the existing code in Outlook?

Re: mail_fetch_fast() and ENVELOPE

2004-09-08 Thread Mark Crispin
On Wed, 8 Sep 2004, Shawn Walker wrote: 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". I still don't understand. Are you writing replacement IMAP client code for the existing code in Outlook? -- Mark -- http://s

Re: mail_fetch_fast() and ENVELOPE

2004-09-08 Thread Shawn Walker
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 message

Re: mail_fetch_fast() and ENVELOPE

2004-09-08 Thread Mark Crispin
On Wed, 8 Sep 2004, Shawn Walker wrote: I have no choice but to download all the message headers Why? 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 mor

Re: mail_fetch_fast() and ENVELOPE

2004-09-08 Thread Shawn Walker
I'm not using "elt->private.msg.env". I just want to be able to get the response that IMAP server returned from the fast command. I have no choice but to download all the message headers but I want to get them all at once with one request and many responses which will be much faster than 15,0

Re: mail_fetch_fast() and ENVELOPE

2004-09-08 Thread Mark Crispin
On Wed, 8 Sep 2004, Shawn Walker wrote: What I want to do is get the list of messages back with all the info with one call and the loop through all the messages that came back. Not make 15,000 requests to server for 15,000 messages. You *must* call mail_fetch_structure() to get the envelope. If

Re: mail_fetch_fast() and ENVELOPE

2004-09-08 Thread Shawn Walker
What I want to do is get the list of messages back with all the info with one call and the loop through all the messages that came back. Not make 15,000 requests to server for 15,000 messages. Mark Crispin wrote: On Wed, 8 Sep 2004, Shawn Walker wrote: How do I get mail_fetch_fast() to get the

Re: mail_fetch_fast() and ENVELOPE

2004-09-08 Thread Mark Crispin
On Wed, 8 Sep 2004, Shawn Walker wrote: How do I get mail_fetch_fast() to get the ENVELOPE along with "UID INTERNALDATE RFC822.SIZE FLAGS" for IMAP, so this is what I want c-client to send to the server "(UID INTERNALDATE RFC822.SIZE FLAGS ENVELOPE)". You don't. You use mail_fetch_structure() in

mail_fetch_fast() and ENVELOPE

2004-09-08 Thread Shawn Walker
How do I get mail_fetch_fast() to get the ENVELOPE along with "UID INTERNALDATE RFC822.SIZE FLAGS" for IMAP, so this is what I want c-client to send to the server "(UID INTERNALDATE RFC822.SIZE FLAGS ENVELOPE)". Thanks, Shawn