velusamy has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

I have installed Mail::Webmail::Gmail module from cpan. I did following code to login and get the mail.

my $gmail = Mail::Webmail::Gmail->new( username => 'user', password = +> 'password'); my $messages = $gmail->get_messages( label => $Mail::Webmail::Gmail::F +OLDERS{ 'INBOX' } ); if ($gmail->error()) { print $gmail->error_msg(); exit; } print Dumper $messages;

But,It's not returning any information about mail, instead it's not return anything. I also checked whether any error occurs by using 'error_msg()' method. But I did not get any error message also. What might be the problem? please help me out..

Have anyone experienced this..

Replies are listed 'Best First'.
Re: Problem in Mail::Webmail::Gmail Module
by marto (Cardinal) on Apr 11, 2009 at 14:16 UTC

    Looking at the Active bugs it seems other are also having the same problem. This module has not been updated in a few years, perhaps the Gmail API has changed since this module was created. If I where you I'd check the module source and add some debugging to try and figure out whats broken, perhaps its something simple to fix.

    Martin