On Tue, Feb 25, 2003 at 02:56:59PM -0500, A. Farber wrote: > Right and also this list manager will add [gentoo-user] back to my > replies. > > So here are the answers I found (thanks!) so far (and they do work): > > Add to ~/.procmailrc > <snip> > :0hf > | formail -fc | sed -e '/^Subject:/ s,\[gentoo-user\] ,,g' <snip>
It occurs to me that using this in conversation with others who are not stripping [gentoo-user] will lead to an accumulation of "Re: "s in the subject. You could automatically clean this up by using this rule in its place: :0hfw * ^Subject:[ ]*\/[^ ].* | formail -i"Subject: `echo ${MATCH} | sed -e's/\[gentoo-user\] //g' -re's/([Rr][Ee]: )+/Re: /g'`" Those brackets on the Subject matching line should be [<space><tab>] and [^<space><tab>] respectivly. -- Tyler Trafford -- [EMAIL PROTECTED] mailing list