Re: mailboxes and save_empty
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@xxxxxxxxxxx)
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