On Oct 16, 1999, Byrial Jensen wrote:
> On Fri, Oct 15, 1999 at 12:38:20 -0700, Larry Fletcher wrote:
> > On Oct 15, 1999, Byrial Jensen wrote:
> > > > Is there any way to expire messages in selected folders similar to
> > > > the way messages in newsgroups are expired?
> > > 
> > > Yes, you can use the "delete-pattern" command with a pattern to
> > > give the oldest messages. E.g. to delete all messages received more
> > > than 20 days ago type "D~r>20d" and enter. Or you can bind the key
> > > sequence to a key with a macro:
> > > 
> > > macro index E "D~r>20d<enter>" "Expire messages older than 20 days"
> > 
> > Thanks!  This isn't the completely automated solution I was looking for,
> > but it's definitely a step in the right direction.
> 
> I think that you can do it automatically with this command:
> 
> mutt -f folder-to-expire -e 'set delete;push D~r>20d<enter>q'

Amazing!  It's perfect!  Thanks Byrial!

And thanks to everyone else that offered suggestions!  (MH folders
and deleting message files by date work as well, but mutt is slower
with MH folders.)

Reply via email to