procmail
[Top] [All Lists]

How can I change a domain or extract only a username from ^TO

2005-06-03 06:42:21
Hello!

I would like to accomplish the following:

I get an email from name1(_at_)domain1(_dot_)com .

I want procmail to either extract just the "name1" part, or change
"domain1.com" to "domain2.com" without touching the "name1", then send
(forward) mail to name1(_at_)domain2(_dot_)com . And I want to avoid using an
external perl script :). 

Can I do it using internal procmail syntax, maybe awk would be a
solution? I'll be grateful for any hints, tips, or tricks. 


-- 
Best regards,
Daniel

____________________________________________________________
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

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