Saturday, June 20, 2009

Treasure hunting for Perl Modules Part 2

Windows Live Mail has recently enabled Secured POP3 so you could connect using any normal modern email client to retrieve email. I've wrote a Perl script using Mail::POP3Client to retrieve email from my hotmail account. The script kept returning DEAD when I checked the connection status, the script completed way too early, indicating that it probably didn't perform any socket connections at all.

Dumping the Connect(); and Message(); calls to STDERR gave away the error:
IO:Sockets::SSL wasn't installed.

AS PPM doesn't have the required modules so it was off to http://cpan.uwinnipeg.ca/PPMPackages/10xx/ to grab the IO::Sockets::SSL and the dependancies.

ppm install http://www.bribes.org/perl/ppm/Net-SSLeay.ppd
install Scalar-List-Utils from default ActiveState PPM repo
ppm install http://cpan.uwinnipeg.ca/PPMPackages/10xx/IO-Socket-SSL.ppd

Works now :)
Off to grind on the warlock.

No comments: