On Thu, Dec 06, 2007 at 04:46:20PM +0100, Rado S wrote: > =- Chris G wrote on Thu 6.Dec'07 at 13:03:13 +0000 -= > > > What's a reliable way of removing empty maildirs? > > Presumably it's possible but you'd have to follow some protocol that > > wouldn't interfere with the proper writing of messages to the maildir. > > chmod a-w dir/new > rm -rf dir > Won't that remove it even if it's not empty? I see the logic otherwise, prevent new mail being put there before removing it. OK, I'll have to do something like:-
chmod a-w dir/new # check if dir/new dir/cur and dir/tmp are all empty rm -rf dir -- Chris Green