JavaMail POP3 folder.close() method close also store!
I was wondering why I lose the connection to the mail store while retrieving information from it
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
that my program has implicity opened before! I expect that the connection is alive as long I
the method store.close()!
Is there a workaround or a patch that the store won't be closed by calling the method
Thanks for helping!
To contact me directly remove "spam." from the email address.
Re: JavaMail POP3 folder.close() method close also store!
"Daniel Albisser" <email@example.com> wrote in
> 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(
POP3 only supports "INBOX" as a folder, so once you have done your
thing with it and closed it there is little else you can do with
the connection. This may have been the assumption of the author,
becuase there is no concept in POP3 of a "closed" folder, or any
kind of folder for that matter.
|All times are GMT. The time now is 03:40 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.