By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,988 Members | 1,017 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,988 IT Pros & Developers. It's quick & easy.

JavaMail POP3 folder.close() method close also store!

P: n/a
Hi @ll,

I was wondering why I lose the connection to the mail store while retrieving information from it
without
calling the method store.close()! At the end I found out that the method folder.close(boolean) also
close the store!

Following you see the debug log of the JavaMail API:
C: QUIT
S: +OK POP3 server closing connection


I really have to keep the connection alive to the server to get all messages at once from the mail
store. But after closing the folder my client is disconnected :o(

From my point of view it is not very correct that the API close the connection to the store in the
background
that my program has implicity opened before! I expect that the connection is alive as long I
implicity call
the method store.close()!

Is there a workaround or a patch that the store won't be closed by calling the method
folder.close(boolean)???

Thanks for helping!
Greetz,
Dan

--
NOTE:
To contact me directly remove "spam." from the email address.

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Daniel Albisser" <da*************@spam.swisscom.com> wrote in message news:<1081347916.968791@ftpgate>...
Hi @ll,

I was wondering why I lose the connection to the mail store while retrieving information from it
without
calling the method store.close()! At the end I found out that the method folder.close(boolean) also
close the store!

Following you see the debug log of the JavaMail API:
C: QUIT
S: +OK POP3 server closing connection


I really have to keep the connection alive to the server to get all messages at once from the mail
store. But after closing the folder my client is disconnected :o(

From my point of view it is not very correct that the API close the connection to the store in the
background
that my program has implicity opened before! I expect that the connection is alive as long I
implicity call
the method store.close()!

Is there a workaround or a patch that the store won't be closed by calling the method
folder.close(boolean)???

Thanks for helping!
Greetz,
Dan


I may be wrong but without looking into this to far, POP3 is a single
folder store. If that folder is cloded then the store is no longer
needed. I know nothing about your application so I can't say if
closing the folder is the action you should be taking or not.

Hope this helps,
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.