procmail
[Top] [All Lists]

Re: first word compare and remove

1996-05-24 17:52:17
Gumbie <gumbie(_at_)sunspot(_dot_)tiac(_dot_)net> writes:
...
  now the receipie i seen in the best_of_procmail_list:

:0
* ^Subject: *magicword\>.*\/[^ ].*
| formail -I"Subject: $MATCH" | flist whatever_other_args

 Does not work... could this have something to do with it:

procmail v3.06pre3 1994/08/26 written and created by Stephen R. van den Berg


From the procmail HISTORY file:

1994/10/31: v3.10
            Changes to procmail:
               ...
               - The regexp engine can return matches now (new token "\/",
                 new variable "MATCH")
               ...




 this is the version installed by my ISP so by installing my own i will 
lose certain benifits, yes or no?

Possibly.  If they use smrsh for the 'prog' mailer (assuming sendmail here)
then you'll definately need them to do the install.  It's preferable to
run procmail setuid root, but it's not necessary, so you can get by without
it.


   well anyways is their another way to accomplish this with out 
installing the updated version?

Use sed:

:0 fhw
* ^Subject: *magicword\>
| sed '/^Subject:/s:magicword *::'

Philip Guenther

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