This may be a little ot if so I apologize
Ive written an email client using javamail imap behaves well but pop3 is giving headaches when it comes to large mailboxes.
When connecting to a hotmail account im getting the infamous "Mail server pop3.live.com responded: login allowed only every 15 minutes" also sometimes connecting causes a timeout with large folders (14000 messages)
When connecting to a gmail account it only retreives 417 of 2016 messages.
gmail has a way of storing which messages have been downloaded previously via pop, some suggestions are to disable and enable the account again (for all messages etc) this only reduces the number of messages available.
I noticed that gmail messages are really old i.e. 2006.
A look at the api docs shows very limited functionality for pop3, one question is does the javamail api mark downloaded messages as deleted by default?
there is a property mail.pop3.rsetbeforequit wheich reads
"Send a POP3 RSET command when closing the folder, before sending the QUIT command. Useful with POP3 servers that implicitly mark all messages that are read as "deleted"; this will prevent such messages from being deleted and expunged unless the client requests so. Default is false. "
does this mean that it is up to the mailserver if the messages will be marked as deleted by default?
my second question is if there is a easy to read reference on how to connect and retrieve mails via pop3 The theory all works fine, there are no exceptions being generated, but I would love some real world examples because different mailservers behave differently