CC: | perl [...] overmeer.net |
Subject: | [Bug] Mail::Address does not extract user correctly |
Date: | Mon, 17 Dec 2012 19:01:07 +0000 |
To: | bug-MailTools [...] rt.cpan.org |
From: | Filipe Gonçalves <filipe.goncalves [...] anubisnetworks.com> |
Good afternoon,
I would like to report a bug in the Mail::Address perl module (part of
the MailTools bundle).
The user acessor is using index to retrieve the @ from which to call
substr. Unfortunately, for valid emails such as "valid@email"@test.tld
this acessor returns "valid as the user. Since hostnames, unlike the
user bit, can never have the @ character in them, replacing index with
rindex (like in the host accessor) solves this problem. It's just a
matter of adding an r in line 269 of Mail/Address.pm
Thanks
--
Filipe Gonçalves
AnubisNetworks
Av. Quinta Grande, 53
Edifício Prime, 5ºA
Alfragide
2610-156 AMADORA
Mob : +351 91 058 8056
Tel : +351 21 725 2110
Fax : +351 21 725 2119
filipe.goncalves@anubisnetworks.com
http://www.anubisnetworks.com