Hacking Gmail

(Grace) #1

Chapter 7 — Gmail Libraries 127


Perl — Mail::Webmail::Gmail


CPAN, the directory of Perl modules, lists quite a few Gmail-related modules,


one of which is shown in Figure 7-2. But at time of this writing, the only one


working is Allen Holman’s Mail::Webmail::Gmail.


FIGURE7-2: A CPAN search resulting in a Gmail module


Getting and Installing the Library.


Mail::Webmail::Gmail is available from CPAN. You can download it directly
from http://search.cpan.org/~mincus/or use the command line like this:


sudo perl -MCPAN -e ‘install Mail::Webmail::Gmail’


However installed, the module has a few dependencies that you will need to have


installed already:


LWP::UserAgent

HTTP::Headers

HTTP::Cookies

HTTP::Request::Common

Crypt::SSLeay

Exporter
Free download pdf