Home > English, Tech Crunch > Track disk usage in Maildir mailboxes

Track disk usage in Maildir mailboxes

This article was first written in August 2004 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/150).

I can often be useful to track down disk usage in Maildir format. For example, looking at Trash folder size of all your mailboxes, provided you are using Maildirs located in users’ homes:

# cd /home; for i in *; do if [ -d $i/Maildir/.Trash ];then du -s $i/Maildir/.Trash; fi; done | sort -n

It will give you something like (provided you have both mailboxes: titi and grosminet):

104     titi/Maildir/.Trash
108     grosminet/Maildir/.Trash
Categories: English, Tech Crunch Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: