Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Not complete!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Not complete!
Authored by: MattHaffner on Jul 26, '07 01:02:07PM

This hint unfortunately doesn't include some attachments for me, which may be the bulk of the size contribution to your Mail directories. Apple Mail seems to split some (larger?) attachments into files with .emlxpart extentions. mdimport doesn't seem to attach a content type to these, so you can't find them with this method. I didn't do a lot of testing, but it may only do this for large attachments or ones that are viewed inline.

Using the finder, the best idea is the one suggested above, using get info on the folder and letting it calculate the size for you. You can do this on any of your account sub-folders by drilling down a little into the Mail folder.

Using Terminal, I like to get a breakdown of the size of each of my subfolders once in a while. As an example:

$ cd ~/Library/Mail/IMAP-haffner@xyz/mail
$ du -shc *
 50M    Drafts.imapmbox
7.8M    Junk.imapmbox
751M    Sent.imapmbox
8.0K    Templates.imapmbox
 60M    Trash.imapmbox
.... (etc.)

The du stands for "disk usage". With out the -s (summary) switch, you'll get the size of every file below the current directory (probably not what you want for this purpose). -h gives the output in more "human-readable" forms using k, M, and G for sizes (instead of bytes). Without -h, it gives the number in unix block units (512 bytes). You can use -k instead of -h to get a numeric (only) output per file in kilobytes. Finally -c gives a grand total at the end.

[ Reply to This | # ]