procmail
[Top] [All Lists]

filtering out reply email address....

1996-05-09 22:14:47
Hi, I'm the guy that was wondering about how to get an auto subscriber
going for my mailing list....

Here's the recipe I fixed up, with the help of Guy (I think that was your
name! :)

:0
* ^Subject: coc subscribe*
* !^X-Loop: ginof(_at_)io(_dot_)org
* !^Subject:.*Re:
* !^FROM_DAEMON
{
   :0hwc
   * ^Subject: coc subscribe \/[^ ]*
   FROM_ADDRESS=| formail -xTo:
   NAME="$MATCH"
   :0fib
   | echo "ADD coc-ezine cronosmantas $FROM_ADDRESS $NAME"
   :0ab
   ! listproc(_at_)lists(_dot_)colorado(_dot_)edu
}

Now EVERYTHING works perfect with this recipe, except for the fact that
formail DOESN'T extract the proper To: address, what it gives, for example
using my email address is:

Gino Filicetti <ginof(_at_)io(_dot_)org>

and place THAT into $FROM_ADDRESS, ....

$NAME is extracted beautifully, and everything else works, the only thing
I need is to find a way to BETTER extract the sender's address, or someway
to filter "Gino Filicetti <ginof(_at_)io(_dot_)org" to read only 
"ginof(_at_)io(_dot_)org"

Any takers? Cc: to my email address if you don't mind, thanks guys!

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