dattier(_at_)wwa(_dot_)com (David W. Tamkin) writes:
Ben Stuyts wrote,
| Does anybody have a nice sed script to kill those brain dead "Re^2: blah"
| that one sees here every now and then?
Ideally, since procmail's regexp matching is more powerful than sed's and
we're only going to end up using formail anyway to replace the subject line,
[long recursive recipe deleted]
# Filter "Re:"/"Re^3:" and the like out of Subject:
* ^Subject: *((Re: ?)*Re[[^]|Re: *Re:)
| perl -pe 's/^subject:\s*(?:re[^\d]*:\s*)+/Subject: Re: /i;'
This "Re^2:" stuff is new to me, but my perl subject fixer was easily
fixed to deal with it. If you *really* need multiline subjects to be
fixed, ask me how this can be modified to do that.
Please do not CC me when replying to the list. It is not my responsibility to
prove to you my mail is not spam, if mail to you bounces it will not be resent.