procmail
[Top] [All Lists]

Re: Regex problem solved

1997-01-15 10:43:42
      Thanks to everyone who sent me suggestions.  I've ended up using
the following:

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

One thing: if you wish handle multiple Re:'s (ie: Re: Re: blah blah), as
often seen in Usenet postings, then use this regexp:

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

___________________________________________________________
Alan Stebbens <aks(_at_)sgi(_dot_)com>      http://reality.sgi.com/aks
    

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