WWW::GMailWWW::GMail is a Perl extension for accessing Google Mail (gmail). | |
Download |
WWW::GMail Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- David Davis
- Publisher web site:
- http://search.cpan.org/~xantus/POE-Component-Proxy-MSN-0.02/lib/POE/Component/Proxy/MSN.pm
WWW::GMail Tags
WWW::GMail Description
WWW::GMail is a Perl extension for accessing Google Mail (gmail). WWW::GMail is a Perl extension for accessing Google Mail (gmail).SYNOPSIS use WWW::GMail; my $obj = WWW::GMail->new( username => "USERNAME", password => "PASSWORD", cookies => { autosave => 1, file => "./gmail.cookie", }, ); my $ret = $obj->login(); if ($ret == -1) { print "password incorrectn"; } elsif ($ret == 0) { print "unable to login $obj->{error}n"; exit; } my @list = $obj->get_message_list('inbox'); # count the new messages in the inbox my $new_msgs = 0; for my $i ( 0 .. $#list ) { $new_msgs += $list->; # count the unread flags } print "you have $new_msgs new messages in your inboxn"; my @contacts = $obj->get_contact_list(); print "you have ".(@contacts)." contactsn"; my $gmail = 0; for my $i ( 0 .. $#contacts ) { $gmail += ($contacts-> =~ m/gmail.com$/i); } print "$gmail of them are gmail addressesn"; $obj->logout();Requirements:· Perl Requirements: · Perl
WWW::GMail Related Software