dcsimg
Is it the best procedure to get all the messages from imap "inbox" folder and store each of them in a local array of type Message.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, February 26, 2002 10:11 AM

Is it the normal procedure to get all the messages from the inbox folder, and store them in a local array?
This local array would then be accessed to display each message. I am writing an email client.

Re: Is it the best procedure to get all the messages from imap "inbox" folder and store each of them in a local array of type Message.

Posted By:   Rizwan_Sattar  
Posted On:   Tuesday, March 5, 2002 11:39 AM

Well,

I just wrote an e-mail client and that is the way i did it, but you hve to remember: getting an array of messages is a very long process (if your inbox is large), so it is better to get MessageProfiles first for your message, and store that in an array, and then when you select a message in the list, you call getMessage(rowNumber) to actually get the message. This will speed up your processing.

I'd also suggest creating a progress bar for the process if possible, it's not good to just give a user a wait cursor ;)



regards,

Rizwan

About | Sitemap | Contact