procmail
[Top] [All Lists]

Re: Take a From address

1998-05-02 13:55:26
On Sat, 2 May 1998, Harry M. Jensen wrote:

Hello !!

Does someone have hint on how I can take the "from address" in a reieved
e-mail, and send a note to another e-mail address that an e-mail is
recieved from the "from address" ??

Untested, but how about this:

:0
* ^From: \/.*
| formail -r -I"To: some(_at_)other(_dot_)account" \
        -I"Subject: You got mail"; echo $MATCH | sendmail -oi -t

-- 
Just go with the flow control, roll with the crunches, and, when you
get a prompt, type like hell.

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