procmail
[Top] [All Lists]

Re: How to get the senders email address in the perl script where procmail forwarded the mail ?

2007-10-07 15:02:28
On 7-Oct-2007, at 09:39, Thomas Elsgaard wrote:
I am having a very simple rule in procmail, i am piping all mails  
with a
specific word in the subject into a perlscript, where i do some
modifications.. that works.. but i would really like to know the  
senders
email address, so i in the perl script can reply him, any idea how  
i could
get that ?

   :0
   * $ ^From:$WS+\/[^$WS]+
   { FROM=$MATCH }

or

   :0 h
   FROM=|formail -IReply-To: -rtzxTo:

Depending on what, exactly, you want.  The latter is the bare address  
without any label/comment.


-- 
BUGS: There is no conversion specification for the phase of the  
moon."  strftime(3) man page

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail