Re: Automatically Deleting old Messages
- To: mutt-users@xxxxxxxx
- Subject: Re: Automatically Deleting old Messages
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Fri, 15 Jun 2007 15:05:26 -0600
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Dkim-signature: v=0.5; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=received:comment:domainkey-signature:received:received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; q=dns/txt; s=default; bh=3C5sT+cuxVpR0YTKxp65+e63DPI=; b=jEKwoZmmVpUezPVtHMZQMEDcp3XF3inimUlzHP7u/7wcfxRRHgNf0+YKG57Dt6kCUO7CcqKCA1f9GYqgVNJQrcilknIAEsiyP5N8v26kqiMA/coJ2BoGamjbSVoXQ/vusN5P//x81cFDelSjq/LiJbObVod1sck2/8qr1tCKdd0=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=j4d3g5LylKPs94DXYH7H5nP59fYhER4rzGmtEOHaXreZfL/PS2Mp5uysqc5kaL0dB6ZvxOS4w1xQXmlzgpPbnoAtHJHcTt1OKWngVEhxThnfwOgZ6ISFdEEvlo5Y3Cq/YOJHc6R9tdlze8OUp60eB0+C72Qs4vloq0/tP88JVRQ= ;
- In-reply-to: <20070615205917.GA51726@xxxxxxxxxxxxxxxx>
- List-unsubscribe: <mailto:mutt-users-request@mutt.org?body=unsubscribe>
- Mail-followup-to: mutt-users@xxxxxxxx
- References: <20070615205641.GB24713@ali-desktop> <20070615205917.GA51726@xxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.15cvs (2007-05-20)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday, June 15 at 10:59 PM, quoth Nicolas Rachinsky:
>* tyler.roach@xxxxxxxxxxxxxx [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-----