use Mail::Header; use Mail::Address; my $header = Mail::Header->new([@lines]); my($from) = Mail::Address->parse($header->get("From")); my($user,$host) = ($from->user(),$from->host());
Edit by tye
In reply to Re: How can I extract the username/domain?
by wog
in thread How can I extract the username and hostname/domain from e-mail addresses?
by Symuc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |