procmail
[Top] [All Lists]

Re: resending email

2000-06-20 13:07:17
Perhaps something like this (untested):

:0
* ^TO_.*\/[^@ ]+(_at_)mydomain\(_dot_)com
{
  USER=`echo $MATCH | sed 's/@.*$//'`

  :0
  | external_program.pl $USER
}


On Tue, 20 Jun 2000, Lukasz Michalski wrote:

Hi,

I need to resend incoming email to some other adress. Emails comes to
xxxxxxxx(_at_)mydomain(_dot_)com and all are handled by signle user account. I 
need
recipe that fetch xxxxxxxx from To: field and executes external program
with xxxxxxxx as argument.

Can anybody help me to do it?

Thanks in advance.

P.S.
Please send any copies directly to me.

Lukasz Michalski
zork(_at_)clan(_dot_)pl



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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