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.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.