Skip Menu |

This queue is for tickets about the WWW-Contact CPAN distribution.

Report information
The Basics
Id: 42924
Status: resolved
Priority: 0/
Queue: WWW-Contact

People
Owner: Nobody in particular
Requestors: david [...] axiombox.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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/
please tell me if following code is fine for you. my $email = "david\@axiombox.com"; #or something else my @contacts = $c->get_contacts($email, $password, 'Hotmail'); if it's OK, I'll just simply put 'Hotmail' => 'Hotmail' in "has 'social_network' => (". so everything would get fixed. Thanks.
Subject: Re: [rt.cpan.org #42924] W::C should accept other emails besides known supplier's domains
Date: Sat, 31 Jan 2009 10:13:05 -0500
To: bug-WWW-Contact [...] rt.cpan.org
From: David Moreno <david [...] axiombox.com>
I forgot to mention that I also tried that and it didn't work either with this errstr: hotmail is not supported yet. After browsing the code that's because the only actual social network recognized is "Plaxo". Thanks. David Moreno http://damog.net/ On Jan 31, 2009, at 6:53 AM, Fayland Lin via RT wrote: Show quoted text
> my @contacts = $c->get_contacts($email, $password, 'Hotmail');