[Mimedefang] Enumerate Email Address parts
Joseph Brennan
brennan at columbia.edu
Wed Feb 3 09:44:05 EST 2010
"David F. Skoll" <dfs at roaringpenguin.com> wrote:
> Joseph Brennan wrote:
>
>> There is of course "more than one way to do it", but here's one:
>> my ($localpart,$domainpart) = split('@',$Sender);
>
> /me waits for D. Stussy to point out the 100+ ways that can go wrong...
I learned on Usenet in 1989 that the way to get discussion going is
to post something that other people can correct! The more quickly
written the better.
Brian-- I assumed exactly one @ in the $Sender, and David's comments
will cover cases of two or more, and none. Because crazy stuff happens.
Joseph Brennan
Columbia University Information Technology
More information about the MIMEDefang
mailing list