procmail
[Top] [All Lists]

Re:/Fwd perversions

1997-10-08 11:46:36
Dear list,

A while ago some of you helped me set up a recipe to deal with all kinds of  
"Re: Re:^2" perversions in subject lines. It has worked great until a few days  
ago, so I'd like to ask for some help again.

This is the current recipe:

# Deal with all manner of subject line perversions of "Re:"
:0 fhD
* ^[Ss][Uu][Bb][Jj][Ee][Cc][Tt]: *\
        (RE:|re:|([rR][eE]: ?)*[rR][eE][[^]|[rR][eE]: *[rR][eE]:)
| perl -pe 's/^subject:\s*(re[][^\d]*:\s*)+/Subject: Re: /i;'

And I would like to extend it to handle the following subjects that have been  
coming in here:

Subject: Fwd: CVSup release identity
Subject: Re: Fwd: CVSup release identity
Subject: Fw: Fwd: CVSup release identity

i.e change all these to:
Subject: Re: CVSup release identity

I am not so well versed with regular expressions of the above complexity, so  
I would appreciate it if you could help me with this.

With kind regards,
Ben Stuyts

<Prev in Thread] Current Thread [Next in Thread>