Why downloading of email headers lasts so long?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Robert_Dzikowski
Posted On:   Saturday, November 8, 2003 06:29 PM

Hi I am using Sun implementation of JavaMail version 1.3.1. Execution of the following code (36 emails on POP3 server) lasts on average 15 seconds: try { if(currentFolder != null) if(currentFolder.isOpen()) currentFolder.close(true); if(store != null) { currentFolder = store.getFolder(folder); try{ currentFolder.open(Folder.READ_WRITE); } catch(ReadOnlyFolderException readException){ currentFolder.open(Folder.READ_ONLY); } mails = currentFolder.getMessages(); FetchProfile fp = new FetchProfile(); fp.add(FetchProfile.Item.ENVELOPE); currentFolder.fetch(mails, fp   More>>

Hi


I am using Sun implementation of JavaMail version 1.3.1. Execution of the following code (36 emails on POP3 server) lasts on average 15 seconds:



try
{
if(currentFolder != null)
if(currentFolder.isOpen())
currentFolder.close(true);


if(store != null)
{
currentFolder = store.getFolder(folder);
try{
currentFolder.open(Folder.READ_WRITE);
}
catch(ReadOnlyFolderException readException){
currentFolder.open(Folder.READ_ONLY);
}


mails = currentFolder.getMessages();
FetchProfile fp = new FetchProfile();
fp.add(FetchProfile.Item.ENVELOPE);
currentFolder.fetch(mails, fp);
}

}// try



Why does it take so long? Microsoft Outlook Express much quicker downloads headers.

   <<Less
About | Sitemap | Contact