When, for instance,
is given as a command when the mailbox contains only two messages, the response
-ERR Message (4) does not exist.
But instead it exits, breaking the connection ungracefully.
As I see it this is because the code catches ArrayIndexOutOfBoundsException.
But ArrayList.get() throws IndexOutOfBoundsException.
It appears that I have fixed this, for the most part, in my working copy by
changing ArrayIndexOutOfBoundsException to IndexOutOfBoundsException in the
five places where it occurs in POP3Handler.
Another problem, not as bad, is shown by the following sequence:
-ERR Message (0) deleted.
I think the correct response should be:
-ERR Message (0) does not exist.
This would be a little more work to fix, and the problem is not as bad as the