<<< Date Index >>>     <<< Thread Index >>>

Re: Cleanup Mailing lists.



-----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-----