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

Re: Cleanup Mailing lists.



This One Time, at Band Camp, Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx> said, On 
Tue, Jun 24, 2008 at 08:15:40AM -0500:
> > 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

Actually this might work pretty well... I'll try it when I get home...

> ~Kyle
Thanks

-- 
Wael Nasreddine
http://wael.nasreddine.com
PGP: 1024D/C8DD18A2 06F6 1622 4BC8 4CEB D724  DE12 5565 3945 C8DD 18A2

/<o>\ Lighten up, while you still can,
/<o>\ Don't even try to understand,
/<o>\ Just find a place to make your stand,
/<o>\ And take it easy.
/<o>\           -- The Eagles, "Take It Easy"

Attachment: signature.asc
Description: Digital signature