Posted By:
Anonymous
Posted On:
Thursday, November 6, 2003 02:18 PM
could you be more elaborate on this.
like wat other information you are showning while showing 20 mail per page.
according to me u would be showing the subject , date, from and size of each mail.
apart from this you would be displaying new messages count in inbox.
trying putting these solutions.
FetchProfile fp = new FetchProfile();
fp.add(FetchProfile.Item.ENVELOPE);
currentFolder.fetch(msgs, fp);
try not to use folder.getUnreadMessageCount() for checking new Mails again and again.
becoz this method internally scans all the mail in ur inbox and check for unseen flag.
and make sure that you reading only 20 mails and not 2000 mails all at once.