9 messages in net.sourceforge.lists.courier-usersRe: [courier-users] How to estimate M...
FromSent OnAttachments
Robin WhittleSep 22, 2002 8:49 am 
Jesse KeatingSep 22, 2002 9:02 am 
vincent blondelSep 22, 2002 9:28 am 
Robin WhittleSep 22, 2002 9:04 pm 
Luc BrouardSep 22, 2002 11:18 pm 
Michael CarmackSep 22, 2002 11:20 pm 
Luc BrouardSep 22, 2002 11:21 pm 
Thomas LamySep 23, 2002 12:55 am 
Robin WhittleSep 24, 2002 5:35 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] How to estimate Maildir sizes?Actions...
From:vincent blondel (vinc@chello.be)
Date:Sep 22, 2002 9:28:40 am
List:net.sourceforge.lists.courier-users

You can get size of your directory by going in the parent directory of the one you want to estimate the size and typing following statement : du -m --max-depth=0 <name of directory>

You can also getting number of mails in your home directory by typing this : find ./<name of directory> -type f | wc -l

vincent

On Sunday 22 September 2002 17:51, Robin Whittle wrote:

This question probably has a simple answer, but I don't know enough about Linux / Unix to know it, or where to start looking. In essence: what is the command to tell me the total size of all files in a directory and all its subdirectories?

The reason I ask is that my daily tarball of my own email directories is now approaching CD-R capacity limits, and constitutes 1.9 gigs of files in total. I need to prune my mailboxes, but first I need to find out what size they are to guide my pruning.

Mozilla's IMAP client says nothing about mailbox sizes and Netscape 4.77's gives sizes which are way too small.

I can't unzip a tar.gz file of all my email on a Windows FAT32 machine since the message file filenames are too long. I can't navigate into the directories with SAMBA from Windows because the SAMBA user is nobody and the directories can only be executed by the owner of each user account. I tried using tar forcing the owner of all files in the resulting archive to nobody, so I could un-tar-gzip it on the Linux machine with all files and directories being owner nobody, so I could navigate it via SAMBA and use Windows Explorer's Properties command to tell me how much data each Maildir contains . . . but that didn't work and I am sure even an apprentice Unix guru would be offended by all this and have a much better approach!

- Robin