In an older episode (Saturday 09 April 2005 03:55),
multimedia-fan(_at_)myrealbox(_dot_)com wrote:
How do you extract the top level domain name from the sender's email
address?
For example
From: "Firstname Lastname" <username(_at_)subdomain(_dot_)address(_dot_)com>
I would like to match the address.com info a variable.
maybe this helps:
echo @subdomain.address.com|perl -pe 's/@([^.]+\.)?(.*\..*)/$2/'
____________________________________________________________
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