procmail
[Top] [All Lists]

Re: How to Replace subjct with body match?

1997-09-24 23:34:33
On Thu, 25 Sep 1997 01:34:28 +0300 (EETDST),
Jari Aalto <jari(_dot_)aalto(_at_)ntc(_dot_)nokia(_dot_)com> wrote:
    And I want to change the email's subject when I find match to
    that string. It would cimply suffice if the outcome would be

        From: asdads
        Subject: Fault: NNNN in program block YYY    << changed

        Fault: NNNN in program block YYY

:0fhw
* ^From: asdads|#               # is this significant?
* ^Subject: NOK case report|#   # and/or this?
* B ?? ^[       ]*\/Fault: [0-9a-f]+ in program block .*
| formail -I"Subject: $MATCH"

    But if someone has to offer a way to gateher some words from
    the body and stick them into subject that would be even better.

Any old words? Or are you trying to say you would also like to remove
the matched phrase from the body? That would be tricky. (A rather
useful constraint would be to only do this on the first non-empty line
of the body or something like that.)

    Please CC too so that I can see if my list subscription is
    still active.

Done.

/* era */

-- 
 Paparazzi of the Net: No matter what you do to protect your privacy,
  they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>

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