Why does the getSize method return a negative number when using POP3?
Your POP3 server is broken. The POP3 provider uses the TOP command to fetch the headers for the message and the LIST command to determine the size of the entire message. It then subtracts the two values to determine the size of the message body. If the server reports the size of the entire message incorrectly, you may get a negative number. You can set the property “mail.pop3.disabletop” to “true” to disable the use of the TOP command, but note that this will cause any access to the message headers to fetch the entire message.
Related Questions
- If I become eligible to use the instalment method for GST after the first quarter, what period will the Annual GST return cover?
- When calculating the cost of holding assets, what method should be used to calculate the return on equity?
- Why does the getSize method return a negative number when using POP3?