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

Re: How to automatically delete empty maildirs?



On 11Jan2007 17:20, Stefano Sabatini <stefano.sabatini-lala@xxxxxxxx> 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.
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

For reading rec.moto, I use one of those carbon-fiber Logitech mice w/a
little 'No Fear' sticker on it. - Mike Hardcore DoD#5010 <moike@xxxxxxxxxx>
                                  Apologies to Primus