I've got an IMAP mail account where I work and I keep bumping against the quota. I don't have an obvious way to find out what messages/folders are hogging all the space. I'm trying to write a perl script that will find out the size of all my messages and the total size consumed in each folder. If you know a slick way to solve my actual problem, please let me have it!
I've been working with Net::IMAP, but the documentation is a little vague and it's giving me trouble. Net::IMAP::Simple doesn't seem to have a function that will return message sizes. I haven't looked at any others. Let me know if you recommend a different module. Preferably one with examples in the documentation!
Right now I'm stuck trying to get a list of folders from Net::IMAP. I can connect to my IMAP server, authenticate, and run a "list" command, but the response is a plain "Net::IMAP::Response" object (saying "LIST completed.") not a "Net::IMAP::List" object and I can't see any way to get a "Net::IMAP::List object. So, if you've ever bumped heads with Net::IMAP, maybe you can help me with that.
In reply to IMAP & File Sizes by pileofrogs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |