On Fri, Jun 15, 2007 at 03:05:26PM -0600, Kyle Wheeler wrote: > On Friday, June 15 at 10:59 PM, quoth Nicolas Rachinsky: > >* [EMAIL PROTECTED] [2007-06-15 23:56 +0300]: > >> Is there any way I can make mutt (or another application) > >> automatically delete messages in _certain_ folders (such as mailing > >> lists) that are over a certain number of days old? > > > >I use folder-hooks to execute > >push "<tag-pattern> ~r>10d\n<untag-pattern> ~F|~D|~O|~N\n<untag-pattern> > >~(!~T)\n<tag-prefix-cond><save-message>\n\n<sync-mailbox><first-entry><next-new><redraw-screen>" > >on entering specific folders. > > Something simpler, that is more specific to the OP's question, is > this: > > folder-hook foldername 'push "<delete-pattern>~r>10d<enter>"' > > That will delete all messages in the folder "foldername" that are > older than 10 days, BUT it's only triggered whenever you *enter* that > folder. If you never enter that folder, all your old messages will > stay there. > > ~Kyle > --
OK, thanks a lot! That's basically what I was looking for. Also, is there a way to make mutt delete messages on the server when I delete them locally? I am using POP3 with the "keep" option in my .fetchmailrc. Thanks a lot! > The community which does not protect its humblest and most hated > member in the free utterance of his opinions, no matter how false or > hateful, is only a gang of slaves. If there is anything in the > universe that can't stand discussion, let it crack. > -- Wendell Phillips, 1863 ---------------------------------------------------------------------- Find out how you can get spam free email. http://www.bluebottle.com
