File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes pop3 problems on large mailboxes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "pop3 problems on large mailboxes" Watch "pop3 problems on large mailboxes" New topic
Author

pop3 problems on large mailboxes

gx glix
Greenhorn

Joined: Mar 08, 2011
Posts: 2
Hi All,

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

Regards

GX
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pop3 problems on large mailboxes
 
Similar Threads
Javamail and GMail
how to track emails from particular mail id?
Problem with JavaMail API
error while sending mail using socket class
How to Access mail boxes from MS Exchange Server ?