procmail
[Top] [All Lists]

Wierd regex Behavior

1997-01-14 12:52:29

        I'm trying to filter out the Re: in front of mails and am getting
problems.  The following recipie wont work:

:0 f
* ^Subject: [rR][eE]\:*\/.*
| formail -I "Subject: $MATCH"

        It leaves the ':' in the subject.  What is wrong here is the '\:*'
not matching on to the colon and the colon gets sucked into the $MATCH.
Or is the '\:*' getting sucked into the '\/.*' as one regex that goes into
the MATCH variable.  It's quite anoying because '\:\/.*' works just fine
and the colon gets taken out and all I'm lef with is the subject.  Can
anyone help?

================================================================  /| |\
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>