procmail
[Top] [All Lists]

Re: how can I eat the Re:

1997-04-17 05:00:00
On Wed, 16 Apr 1997, MAILBOX wrote:

On Thu, 17 Apr 1997, Robert Nicholson wrote:
I'm trying to capture all the subject without the Re:'s

:0
* ^Subject: *(Re: )*\/[^ ].*
{ SUBJECT=$MATCH }

This doesn't work.


Try this. It's ugly, but it works.

      * ^Subject: +(Re: )*\/(([^R].*|.[^e].*|..[^:].*)|..?$)

        Also here is the recipie that I use, catches those ocasional forms
that look lie "Re[2]", "Re2", ets:

:0 fh
* ^Subject: *re(\[?[0-9]+\]?)?: *\/[^: ].*
| formail -I "Subject: $MATCH"

        Again, ulgy, but it works :)

================================================================  /| |\
James V. Di Toro III            | "I've got a bad feeling        / |_| \/\
System Administrator, GATS, Inc.|   about This" -various        |()\ /  ||
W: 757/865-7491  F:757/865-1021 |------------------------------ |---0---_|
   karrde(_at_)gats(_dot_)hampton(_dot_)va(_dot_)us     |  
www.gats.hampton.va.us        \ / \ /
webmaster(_at_)gats(_dot_)hampton(_dot_)va(_dot_)us     |                       
          ^:::^

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