Renen Watermeyer wrote:
In both instances I asynchronously connect and clear the accounts
every five minutes.
Except that James seems to lose the plot and after a while the POP
server returns 0 messages to Java mail.
Any ideas?
It should not happen. Did you get any exception? Can you increase your
pop3server log level to debug? (server.xml).
Perhaps I should connect slightly less often.
5 minutes is not too much.
Probably there is a problem somewhere in the pop3server.
I have also noticed that it is prudent to POP less than 200 mails at a
shot (otherwise it fails repeatedly with an EOF error). Which also
seems pretty weird.
This could be related to this issue:
https://issues.apache.org/jira/browse/JAMES-288
What type of mailrepository are you using? file / db / dbfile?
Perhaps related to this – if you don't clear a mail box for a long
time, I eventually get an intermittently failure "Sending failed;
nested exception is: class javax.mail.MessagingException: Could not
connect to SMTP host: 127.0.0.1, port: 25". Clearing the mailboxes
seems to correct this….
The SMTPServer behaviour should not be related to the pop3server
problems. Maybe you are in OutOfMemory conditions?
Is there a better way I could calculate (and log) the size of messages?
Don't know. Probably I would proxy/extend the mail repository used for
the mailboxes to calculate the stream length when the store method is
called. You need java skills and understand how components (service) are
created/provided to the other services.
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]