dcsimg

How do I calculate the size of an entire folder?

John Zukowski

For POP3, you can get this information for the INBOx with <size=2>com.sun.mail.pop3.POP3Folder.getSize()</size>.

For IMAP, the protocol doesn't support this feature. You would need to sum the sizes of the contained messages.