Re: Cleanup Mailing lists.
- To: mutt-users@xxxxxxxx
- Subject: Re: Cleanup Mailing lists.
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Tue, 24 Jun 2008 08:15:40 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=5XjE5Z7HdRVBVTYQ6WvKxYCsY3w=; b=GOlF GWxLCD39PGKMnoBRuRCFWIMfx3NvMu1Hb5tvnciM0ZXbYaZQ3m8b9wpYAkMA3lAo 3GVoQPPrLww4Y0Nh1XtyzGEwYPTG86XFNOksyXnQNOh7rnIMFkQ4rarFfUIBZGnd SkMkiZitEcZErwOuhkaF2THC28WuLXNjwxYQTPk=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=MnUPIp5q+I463pC5cuFSBMIrSOOQYQPXAUiflx8weLv1gRsrum12mN0ZfkIpUbBoGiDiXtY7piFAjt2lpms7yzu7PxDobgy7Ua+SZbSt720H2qYXnnUMf9Sg0Idpi5KYP/wD0VosvLMRidUWCozp6WWckE9p/SFdc/O9QMESOzg=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20080624104228.GD23148@xxxxxxxxxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20080624032417.GA23148@xxxxxxxxxxxxxxxxxxxxxxx> <20080624054037.GA26745@xxxxxxxxxxxxxxxxxxxxx> <20080624104228.GD23148@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-06-02)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday, June 24 at 12:42 PM, quoth Wael Nasreddine:
> This One Time, at Band Camp, Christian Ebert <blacktrash@xxxxxxx> said, On
> Tue, Jun 24, 2008 at 07:40:37AM +0200:
>> Perhaps a folder hook? This one (untested) should delete every
>> thread you didn't participate in and older than 1 month:
>
>> folder-hook lists ' \
>> push <delete-pattern>"~r>1m !~(~P)"<enter>'
> This is the same as me going inside the folders one by one to clean
> them up, the difference is that it works in the background... What I
> am looking for is a more efficient answer, isn't there a way to go
> through mailboxes one by one? Even if it uses an external command
> like 'ls -d ~/.mail/.List.*'
What about something like a shell script:
for F in ~/.mail/.List.* ; do
mutt -f "$F" -e 'push "<delete-pattern>!~(~P)<enter>"'
done
~Kyle
- --
Holding on to anger, resentment and hurt only gives you tense muscles,
a headache and a sore jaw from clenching your teeth. Forgiveness gives
you back the laughter and the lightness in your life.
-- Joan Lunden
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkhg83wACgkQBkIOoMqOI14JHACbBHG/0V4Q4kactF3LKU1Xw3vH
1MMAnRX0AsU6yFG2wYsPdqJqq1zVWHPw
=KvND
-----END PGP SIGNATURE-----