<<< Date Index >>>     <<< Thread Index >>>

Re: Reliable/safe way of removing empty maildirs?



On Thu, Dec 06, 2007 at 01:03:13PM +0000, Chris G wrote:
> What's a reliable way of removing empty maildirs?

my /etc/crontab entry:

for i in ~/Maildir/.*; do if [ -d "$i" ] && [ ! "$(find "$i" -mindepth 2 -type 
f)" ]; then rm -rf "$i" ; fi ; done