On Mon, Jan 07, 2002 at 11:15:12 +0100, Andras Simonyi wrote: > Hello, > > I'm struggling with the task of automatizing the deletion of too old > messages in this list ;-). (They are in a separete mbox) I had a working > script which could do this using the grepmail utility, but I'm curious > whether this can be done from within Mutt... I thought that with a > clever .muttrc it's possible and I experimented with the folder-hook > command but without much success (the goal would be that Mutt could > automatically delete messages older than 5 days when entering or leaving > the folder), because itt seems that after the folder-hook command only > setting of some variables is possible and not tagging etc. > > TIA: Andras
Hi - I think that the following does just that: folder-hook mutt.incoming "push 'D~d >14d\n'" It deletes messages older than 14 days from the folder mutt.incoming right when I open it. Or rather: it marks for deletion. Regards. -- Erik van der Meulen <[EMAIL PROTECTED]>