Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does the getSize method return a negative number when using POP3?

method negative pop3 Return
0
Posted

Why does the getSize method return a negative number when using POP3?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123