On Sat, Jun 20, 2009 at 06:43:52AM +0800, Wu, Yue wrote: > On Fri, Jun 19, 2009 at 02:33:20PM +0200, Rocco Rutte wrote: > > Hi, > > > > * Wu, Yue wrote: > > > I want to let mutt deletes empty maildirs automatically, but 'save_empty' > > > only > > > works for mbox, why? How to achieve it for maildir? > > > > It doesn't work for maildir. I'm not sure why, but probably because > > removing an empty maildir has the potential to break something as it > > cannot be done atomically. > > > > For example, mutt could try to delete the subdirectories in this order: > > new, cur, tmp. While mutt deletes new/ some other process writes a new > > message into tmp/ which the delivery agent tries to move to new/ which > > isn't there anymore. > > > > I guess not supporting it is the safest variant. > > But it's annoying all the groups show up in the view all the time, I just want > to see the groups that have mails, others should be hiden or deleted. > It's one of my major gripes with maildir, there appears to be no way to safely (as in maildirsafely) remove a maildir folder.
-- Chris Green