Subject: | W::C should accept other emails besides known supplier's domains |
Date: | Fri, 30 Jan 2009 17:03:37 -0500 |
To: | bug-WWW-Contact [...] rt.cpan.org |
From: | David Moreno <david [...] axiombox.com> |
Some of the suppliers supported by W::C, mainly Hotmail/Windows Live,
supports emails domains, other than the ones on known_supplier.
For instance, Hotmail currently supports:
# hotmail
'hotmail.com' => 'Hotmail',
'live.com' => 'Hotmail',
'compaq.net' => 'Hotmail',
'hotmail.co.jp' => 'Hotmail',
'hotmail.co.uk' => 'Hotmail',
'hotmail.de' => 'Hotmail',
'hotmail.fr' => 'Hotmail',
'hotmail.it' => 'Hotmail',
'messengeruser.com' => 'Hotmail',
'msn.com' => 'Hotmail',
'passport.com' => 'Hotmail',
'webtv.net' => 'Hotmail',
But some people might have other domains as Live accounts, and there's
not easy way for W::C to specify this.
A workaround I'm using is:
my $email = "david\@axiombox.com"; #or something else
my @contacts = $c->get_contacts($email, $password);
if($c->errstr and $c->errstr =~ /is not supported yet/) {
# hack...
my @split = split(/@/, $email);
$c->register_supplier($split[-1], 'Hotmail' );
@contacts = $c->get_contacts(
$email, $password
);
}
But I believe W::C should let me override those predefined domains.
David Moreno
http://damog.net/