procmail
[Top] [All Lists]

Extracting just the email address from "From:"

1997-05-29 12:57:00
Hi,
        I have set up the following recipes to pass people from domains 
that I would normally block.

#This adds the name to the approved list if it uses the cookie.
#It also checks to see that the person isn't already there to avoid
#duplicates.
:0c
* ^Subject:.*givematthewgsaroffacookie
* !^X-Loop: msaroff(_at_)pca(_dot_)net
* ! ? formail -xFrom: | fgrep -i -f $GOLIST
|formail -xFrom: >> $GOLIST

# This will send anything on my approved list directly to my
# inbox
:0
* ? (formail -xFrom:) | fgrep -i -f $GOLIST
$DEFAULT

        It sees if the person is already on my "approved" list, and if 
not, then they are added to the list, if not, they are ot added a second 
time.

        My problem is as follows:  If I get a message from the following 
person:

harui(_at_)bartleblat(_dot_)com (Devourer of worlds, if your world is a 
Twinkie),

I would like to do all my evaluation and comparison on 
harui(_at_)bartleblat(_dot_)com, and dump the (Devourer of worlds, if your 
world is 
a Twinkie) part.
        Is there a way for me to do this?

--Matthew Saroff

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