procmail
[Top] [All Lists]

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

2007-10-07 09:51:17

On Sun, 7 Oct 2007, Thomas Elsgaard wrote:

Hello Procmail users


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 ?

        The best that I know:

SENDER=`formail -r -x"To: "`

        Use the $SENDER in perl as environment variable.

Bye,
  Udi
____________________________________________________________
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