-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 - -- 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 -----BEGIN PGP SIGNATURE----- Comment: Thank you for using encryption! iD8DBQFGcv8WBkIOoMqOI14RAq/UAKChvZCaZMLH/ewFokpPATaqA6t1SQCgwazH RMBWLStCl3Qvf566ngV41/g= =jNpJ -----END PGP SIGNATURE-----