On date Thursday 2007-01-18 14:36:17 +1100, Cameron Simpson muttered: > On 11Jan2007 17:20, Stefano Sabatini <[EMAIL PROTECTED]> wrote: > | Yes, I'm using procmail and it creates a new maildir when it has to > | deliver a message into a not existing maildir. > | > | My problem depends on the fact that I have many maildirs setted as > | mailboxes (using the mailboxes command) and I would like not to display > | them in the buffy view when they don't contain messages. > | > | But rethinking at it maybe it would be better to avoid to delete them, > | and simply not to display empty maildirs/mailboxes in the buffy view > | (an idea for mutt-dev). > > It might be better, but absent that I have a script called "rm0maildir" which > removes a maildir if it is empty: > > http://www.cskk.ezoshosting.com/cs/css/bin/rm0maildir > > It uses a few other scripts from the same directory. You could install the > whole lot, or pick and choose what you want. > > Of course this isn't integrated into mutt at all, so you'd need to run it by > hand somehow.
Thanks Cameron, I'll give it a try. An idea could be to delete the empty maildirs when exiting mutt, but it's not completely safe (since a procmail process could be delivering mails into a removed maildirs right in that moment). Cheers -- Stefano Sabatini Linux user number 337176 (see http://counter.li.org)
