procmail
[Top] [All Lists]

to extract "From: " address properly

2019-04-09 16:22:53
I am using a recipe to catch the email address in "From: " line
to build a "white list", with this to extract the address:

    FROM=`formail -zX From: | formail -c -rt -xTo:`
or  FROM=`formail -zX From: | formail -zrx To:`
or  FROM=`formail -rtzxTo:`

it works fine for some of the time, but once a while it ends up with
a "foo@bar". I wonder why... (is it sometimes the top of the "From " line?)

Zhiliang
____________________________________________________________
procmail mailing list -- procmail(_at_)lists(_dot_)rwth-aachen(_dot_)de   
Procmail homepage: http://www.procmail.org/
To unsubscribe send an email to 
procmail-leave(_at_)lists(_dot_)rwth-aachen(_dot_)de
https://lists.rwth-aachen.de/postorius/lists/procmail.lists.rwth-aachen.de

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