procmail
[Top] [All Lists]

Subset of Body

1999-05-28 05:21:22
I have a need to be able to forward only a small subset of a mail message to an
alpha-pager.  What I need to do is to match on:
        Name: xxxxxxx

<<NOTE:  "Name:" is at the start of a line.>>

within the body of an email and then send, including "Name:", from there N
characters to an email address.

First off, I am having trouble matching "Name:" in the body.  I am trying:

        :0
        * ^Name:
        {
                ... ???
        }

Once I get the match to work (any help here?) will I need to call a sed, awk, or
perl script to get the next N characters?

Can anyone lend a hand?

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