[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mutt-users
Subject:    Re: mailboxes and save_empty
From:       Cedric Bouvier <cedric.bouvier () ctp ! com>
Date:       2004-06-28 12:08:40
Message-ID: 20040628120840.GB4302 () ctp ! com
[Download RAW message or body]

On 06-28 12:26, Chris Green wrote:
> On Mon, Jun 28, 2004 at 12:23:06PM +0100, Chris Green wrote:
> > Can one have more than one save_empty command and more than one
> > mailboxes command in a muttrc, then I could have:-
> > 
> >     save_empty=yes
> >     mailboxes `echo ~/Mail/in/*`
> >     save_empty=no
> >     mailboxes=<list of mailing list mailboxes>
> > 
> Sorry, this is a stupid idea, mutt can only have one 'save_empty', if
> it's set to no then empty mailboxes will disappear wherever they are.
> What was I thinking about when I came up with this idea????
> 
> -- 
> Chris Green (chris@areti.co.uk)

Maybe you can leave save_empty=yes, and have an entry in your crontab
that periodically prunes empty mailboxes in your mailing list directory.
Something like this should work (not tested! Please try it on dummy
data first).

    for mbox in ~/Mail/ml/*; do test -s "$mbox" || rm -f "$mbox"; done

HTH

-- 
C é d r i c   B o u v i e r 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic