5 for maildir in Maildir Mail; do
6 if ! [ -e ~/$maildir ]; then
10 for listtype in lists bugs; do
11 find . -maxdepth 1 -mindepth 1 -type d -iname "$listtype"'.*' -print0|
12 xargs -0 -i bash -c 'A={}; (( $(find "$A" -type f -name "*" -not -name "dovecot*" -not -name ".imap*" -not -name ".customflags" | wc -l) == 0 )) && rm -rf "$A"';
14 find . -maxdepth 1 -mindepth 1 -type l -iname '.*' -not -xtype d -delete;